Re: per file descriptor device callbacks ?

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Mon, 27 Aug 2012 10:55:47 +0300
on 27/08/2012 10:34 Luigi Rizzo said the following:
> This requires to track calls to open/ioctl/poll/mmap/close.
> The difficulty i have is with mmap() and close(), because FreeBSD
> seems to handle these calls per-cdev rather than per-file-descriptor
> (for instance, no 'struct file' argument is available in mmap(), and
> the d_close method is only called on the last close() on the device).

devfs_set_cdevpriv(9), etc

-- 
Andriy Gapon
Received on Mon Aug 27 2012 - 05:55:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:30 UTC