Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

accessing geom stats from the kernel

0 views
Skip to first unread message

Nikolay Denev

unread,
Dec 8, 2009, 1:46:09 PM12/8/09
to freebsd...@freebsd.org
Hello,

I have a small four SATA bay machine (HP ex470) which I'm using as a NAS with FreeBSD+ZFS.
It has four dual color leds for each SATA bay (red and blue + purple if lit together)
Which I'm controlling either from userspace by writing data to the enclosure management ioport,
or recently I've made a kernel module which uses the led(4) framework and exports the leds as device nodes in /dev.

What I'm wondering now is, if there is an easy way to access geom/disk stats from in kernel and make the leds
flash only during disk activity, without having to do it in userspace?

--
Regards,
Nikolay Denev


_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hacke...@freebsd.org"

0 new messages