Hello list,
I have written a device driver for a NAND flash disk for OpenSolaris. On
a safe system shutdown the driver needs to issue a shutdown command to
the disk. I am having problems finding what mechanisms are available for
accomplishing this in my driver. It doesn't look the detach() function
is called on a system shutdown and I have been unable to find any other
driver entry points that are called on a shutdown. So I decided to use
the SMF to issue the shutdown command to the disk. I was successful at
writing a simple manifest to accomplish this when the device is not
mounted. In the case that a filesystem exists on the disk, specifically
ZFS, I was hoping I could simply add a dependency to the manifest so
that the stop method would be executed after ZFS is done accessing the
disk on a shutdown. Unfortunately I have not been able to locate the
dependencies needed to accomplish this.
Is SMF the right to go about solving this problem, or are there other
mechanisms in the driver model which provides notification of a system
shutdown?
Thanks,
Josh Morris
[email protected]
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss