[openbeos] driver/module shutdown notification for R1

  • From: "Waldemar Kornewald" <Waldemar.Kornewald@xxxxxx>
  • To: "OBOS" <openbeos@xxxxxxxxxxxxx>
  • Date: Sat, 14 Jun 2003 13:11:10 +0200

Hi,
is there some way for a driver/module get notified when the system is shut
down?
The problem is, for example, that in BONE the ppp module does not know this
and thus does not disconnect. This is a bad behaviour.
Can we implement some additional ioctl and module code like
B_UNLOAD_ON_SHUTDOWN. If it returns B_OK the kernel will unload the
driver/module from memory. Otherwise it will leave it and turning the
computer off should not cause an error.
This is very useful for all kernel drivers/modules that must disconnect
their hardware properly. Of course, ATA devices or a sound card do not need
this feature, but maybe there are devices that need a turn-off signal.

Here we come to the point that something like a real windows-like
turn-the-computer-off screen is needed (if the computer cannot do that
automatically).

What do you think?

Waldemar


Other related posts: