summaryrefslogtreecommitdiff
path: root/sys/dev/hotplug.c
AgeCommit message (Collapse)Author
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@.