Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Sep 2008 02:02:00 -0700
From:      vehemens <vehemens@verizon.net>
To:        freebsd-current@freebsd.org
Subject:   bsd versus linux device drivers
Message-ID:  <200809080202.00664.vehemens@verizon.net>

next in thread | raw e-mail | index | archive | help
In linux drivers, there is a one to one relationship to an open and a calling 
argument structure called struct file.  It provides a private data pointer 
that allows the driver to preserve unique state information across other 
calls such as read/write/ioctl/mmap/close etc.

For bsd drivers, my understanding there is not an equivalent.  As a result it 
is not possible to preserve different state information for multiple opens by 
the same thread of the same device major/minor #'s.

Is this correct, or did i miss something?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809080202.00664.vehemens>