Previous versions of my driver set devo_quiesce to ddi_quiesce_not_needed. When investigation different shutdown options I set devo_quiesce to a stub function, pflash_quiesce(), that logged a message whenever the function was called. I think the message was not getting logged since the quiesce() happens so late in the shutdown sequence. So I was incorrectly assuming the function wasn't getting called when it actually was.

-Josh

John Martin wrote:
On 02/19/10 11:01 AM, Josh Morris wrote:
OK I verified that the quiesce() entry point is being called. I'm not sure how I missed that. Thanks for the help!

Interesting.  Does your driver set dev_ops.devo_quiesce?


-Josh

John Martin wrote:
On 02/18/10 05:46 PM, Josh Morris wrote:
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. ....

Is the driver attached the system shutdown happens?

If fast reboot is enabled (default) your driver may only
receive a quiesce(9E) call.  Is this a character driver and
if so, what does your dev_ops structure look like?






_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to