mmap() vs. character special file

Peter Jeremy peterjeremy at optushome.com.au
Sat Jun 24 22:20:28 UTC 2006


On Sat, 2006-Jun-24 01:27:05 +0300, Dmitry Pryanishnikov wrote:
>So it looks like one should be able to mmap() a character special file (w/o 
>MAP_ANON, of course). However, if I try to issue:

If you have the kernel source handy, you can check which devices
support mmap() by looking for a 'd_mmap' entry in their struct cdevsw.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060624/edbca42e/attachment.pgp


More information about the freebsd-hackers mailing list