summaryrefslogtreecommitdiff
path: root/sys/dev/hotplug.c
AgeCommit message (Collapse)Author
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
2015-02-10Switch uiomovei(..., sizeof whatever, ...) to uiomove().Miod Vallat
2015-02-10First step towards making uiomove() take a size_t size argument:Miod Vallat
- rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
2011-07-02kqueue attach functions should return an errno or 0, not a plain 1. FixNicholas Marriott
the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
2010-12-15revert the malloc change, as it meant dropping events before the device isTed Unangst
opened. keep the array expansion. ok deraadt
2010-12-02make hotplug queue dynamic, allowing us to increase size without waste.Ted Unangst
ok deraadt kettenis miod
2009-11-09Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tNicholas Marriott
supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
2006-05-28Remove device id from hotplug events.Michael Knudsen
ok henning
2006-05-28Include device id in hotplug events. This will be used by ntpd to checkMichael Knudsen
sensors on attach/detach. hotplugd changes following in a minute. ok henning.
2004-10-08If the hotplug queue is full, bump the tail pointer in the circular buffer.Dale Rahn
ok grange@
2004-09-15Return the ability to queue events before hotplugd started.Alexander Yurchenko
ok deraadt@
2004-07-30Correctly drain event queue on close. Fixes PR #3874Miod Vallat
2004-07-05clean & knfTheo de Raadt
2004-07-05do not queue events when no daemon running. flush all events on last close.Theo de Raadt
ok tedu
2004-05-30Devices hot plugging support.Alexander Yurchenko
The hotplug pseudo-device passes device attachment and detachment events to userland. When a device attaches or detaches, the corresponding event is queued. The events can then be obtained from the queue through the read(2) call on the /dev/hotplug device file. Each event consists of event type (attach/detach), device class (DV_*) and device name (sd1 e.g.). We have hotplug pseudo-device on alpha, amd64, i386, macppc and sparc64. Since it was tested only on i386 other archs has it commented out in GENERIC until tested. The idea liked peter@ tedu@ drahn@ millert@ marco@ henning@. Ok deraadt@.