freebsd-skq/share/man
hselasky cd2aff7346 Streamline use of cdevpriv and correct some corner cases.
1) It is not useful to call "devfs_clear_cdevpriv()" from
"d_close" callbacks, hence for example read, write, ioctl and
so on might be sleeping at the time of "d_close" being called
and then then freed private data can still be accessed.
Examples: dtrace, linux_compat, ksyms (all fixed by this patch)

2) In sys/dev/drm* there are some cases in which memory will
be freed twice, if open fails, first by code in the open
routine, secondly by the cdevpriv destructor. Move registration
of the cdevpriv to the end of the drm open routines.

3) devfs_clear_cdevpriv() is not called if the "d_open" callback
registered cdevpriv data and the "d_open" callback function
returned an error. Fix this.

Discussed with:	phk
MFC after:	2 weeks
2012-08-15 16:19:39 +00:00
..
man1
man3 General mdoc(7) and typo fixes. 2012-05-11 20:06:46 +00:00
man4 Add a short man page describing how to run a.out binaries on the 2012-08-15 16:01:45 +00:00
man5 Use new method of assigning IPv4 addresses 2012-08-05 08:19:52 +00:00
man6
man7 Add reference to portsnap(8). 2012-07-02 17:52:43 +00:00
man8 Fixes to man8 groff mandoc style, usage mistakes, or typos. 2012-05-24 02:24:03 +00:00
man9 Streamline use of cdevpriv and correct some corner cases. 2012-08-15 16:19:39 +00:00
Makefile