diff options
author | kib <kib@FreeBSD.org> | 2016-01-07 20:08:02 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-01-07 20:08:02 +0000 |
commit | 3277da17a15d25dfa945d1d3e73229600fb919f0 (patch) | |
tree | b2b1a4b261696203ad9e7f7173ec19efabf48685 /contrib/gcclibs | |
parent | d6b33ca987ecc9d932cfe376a81befcf2440ad0a (diff) | |
download | FreeBSD-src-3277da17a15d25dfa945d1d3e73229600fb919f0.zip FreeBSD-src-3277da17a15d25dfa945d1d3e73229600fb919f0.tar.gz |
Provide yet another KPI for cdev creation, make_dev_s(9).
Immediate problem fixed by the new KPI is the long-standing race
between device creation and assignments to cdev->si_drv1 and
cdev->si_drv2, which allows the window where cdevsw methods might be
called with si_drv1,2 fields not yet set. Devices typically checked
for NULL and returned spurious errors to usermode, and often left some
methods unchecked.
The new function interface is designed to be extensible, which should
allow to add more features to make_dev_s(9) without inventing yet
another name for function to create devices, while maintaining KPI and
even KBI backward-compatibility.
Reviewed by: hps, jhb
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks
Differential revision: https://reviews.freebsd.org/D4746
Diffstat (limited to 'contrib/gcclibs')
0 files changed, 0 insertions, 0 deletions