Re: [RFC] New Driver Model for 2.5

Benjamin Herrenschmidt
2001-10-25T08:09:19Z

>In this case, "sg" could add itself when opened, and eventually cause
>sleep requests to be rejected for example.

Well, looks like Linus won't let this one pass ;) A /proc/sgbusy would
eventually be ok, but I'd rather start defining a proper interface
to the PM daemon in userland for apps to request that the machine
doesn't go to sleep. That would be used, among other things, by
CD burners & firmware updaters. No need to hack thousands of apps,
I beleive if we get a patch implementing support for that in cdrecord,
then all burners software will magically start getting it ;)

Ben.