freebsd-dev/sys/dev/smbus
Konstantin Belousov 68b2efbd3b Improve smb(4) devfs interactions.
Use make_dev_s(9) to create device, since the device ioctl interface
needs to access si_drv1 to get softc pointer.

Remove the common but not functional attempt to prevent parallel
accesses by file descriptors by blocking more than one open.  Either
threads in one process, or forked siblings, or file descriptors passed
over unix domain sockets all allow to execute parallel requests once
one fd is opened.  Since ioctl handler uses smbus_request_bus() to
take the bus ownership, the correct mechanism establishes exclusive
access already.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2017-10-01 11:17:30 +00:00
..
smb.c Improve smb(4) devfs interactions. 2017-10-01 11:17:30 +00:00
smb.h smb: fix SMB_READB, SMB_READW, SMB_PCALL to work as documented 2016-11-11 14:41:02 +00:00
smbconf.c
smbconf.h smbus: remove smbus_trans / SMB_TRANS 2016-11-03 07:40:52 +00:00
smbus_if.m smbus: remove smbus_trans / SMB_TRANS 2016-11-03 07:40:52 +00:00
smbus.c
smbus.h