[cffi-devel] [Sbcl-devel] GC write-protected mappings vs. the	OS kernel
    Samium Gromoff 
    _deepfire at feelingofgreen.ru
       
    Tue Nov 10 15:50:35 UTC 2009
    
    
  
From: Juho Snellman <jsnell at iki.fi>
> Samium Gromoff <_deepfire at feelingofgreen.ru> writes:
> 
>> Good day,
>> 
>> While debugging mysterious ioctl() failures in lh-usb on SBCL,
>> I have discovered that using CFFI:WITH-POINTER-TO-VECTOR-DATA
>> doesn't guarantee that the vector is in a writable region.
> 
> I thought we'd never write protect specialized raw arrays (either they
> are in the nursery, or they're tenured into an unboxed region which
> never get wpd). And passing generic arrays to ffi doesn't feel right.
> What's the use case?
Array element type is (unsigned-byte 8), use case is shovelling
data in/out a USB device using bulk transfers via ioctl().
regards,
  Samium Gromoff
--
                                 _deepfire-at-feelingofgreen.ru
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
    
    
More information about the cffi-devel
mailing list