summaryrefslogtreecommitdiffstats
path: root/contrib/libstdc++
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-01-07 20:08:02 +0000
committerkib <kib@FreeBSD.org>2016-01-07 20:08:02 +0000
commit3277da17a15d25dfa945d1d3e73229600fb919f0 (patch)
treeb2b1a4b261696203ad9e7f7173ec19efabf48685 /contrib/libstdc++
parentd6b33ca987ecc9d932cfe376a81befcf2440ad0a (diff)
downloadFreeBSD-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/libstdc++')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud