hi
i am writing a kernel device driver that has a statically allocated
buffer which it populates with some computed data. a user task is allowed
to access this buffer through the select/poll interface and mmapping.
however, the user task reads a stream of 0xFF's from the buffer, which is
not what the kernel stashes in the buffer. i was wondering what the
problem was - i am quite sure i am missing something, just cant figure
what? thanks for any help on this one!
details:
linux kernel 2.2.12, uniprocessor kernel on a mobile pentium II
i ensure that the buffer is page aligned
the xxxmmap() function looks like the one for /dev/mem except the
vma->vm_offset is replaced by the start address of the kernel buffer. it
doesnt help even if i pass this start address through __pa() before
calling remap_page_range()
i am wondering if this has something to do with PAGE_OFFSET, or my kernel
version?
thanks, shashi
------------------------------------------------------------------------
Shashikant K. Rao my opinions, not intel's
------------------------------------------------------------------------