devctl attach/detach notification for disks

Nate Nielsen nielsen-list at memberwebs.com
Wed Feb 22 10:59:44 PST 2006


I'm working on a bit of code to get devctl notifications for attaching
and removing of disks. This would allow actions to be taken via devd
when a disk is attached or removed from the system.

Currently I have the attach and detach notifications hooked into
disk_create() and disk_destroy() in geom_disk.c. See attached (rough)
patch.

However at these points the disks are not yet present in the /dev/
filesystem. Anyone have any clues or tips for a better place to hook
these notifications into the system?

Cheers,
Nate

-------------- next part --------------
A non-text attachment was scrubbed...
Name: devctl-disk.patch
Type: text/x-patch
Size: 3381 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060222/f4e551e4/devctl-disk.bin


More information about the freebsd-hackers mailing list