Re: How to reboot the computer on the driver???



Use a service to do this, at least then a shutdown message will go to the
applications. You will be using documented calls, the kernel only
approaches I am aware of go raw the the hardware, or use undocumented stuff,
in any case they just kill off the userspace stuff with no warnings or
ability for an application to shut down.

I guess I'm trying to understand how a user can use the hardware
"illegally"?


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply




"Baker" <Baker@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9B99F67F-CDB7-4F76-B255-82B950BF5600@xxxxxxxxxxxxxxxx
> Sorry...maybe I didn't explained the problem in detail.
> I just want to check some information related a private hardware in my own
> driver.
> So if a user use the hardware illegally, the driver must make the system
> reboot anyhow. However, that's just our requirement, and I just want to
> know
> that is any possible to reboot the computer in the driver????
>
> Thanks for your reply ^_^
>
> "Don Burn" wrote:
>
>> No, this is one of the really stupid ideas. So your driver doesn't
>> start,
>> in the kernel you want to reboot, potentailly blowing away the users work
>> on
>> a desktop, and perhaps a whole database on a server? Log the problem to
>> the
>> event log and move on.
>>
>>
>> --
>> Don Burn (MVP, Windows DDK)
>> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>> Remove StopSpam from the email to reply
>>
>>
>>
>> "Baker" <Baker@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:C1C087DA-FC56-4906-BDF0-3D35EBF06BA8@xxxxxxxxxxxxxxxx
>> > Dear all,
>> >
>> > I'd like to reboot the machine when my own driver cannot be activated
>> > normally.
>> > Is there any API of kernel mode to do this or other methods I can do
>> > for
>> > this???
>> >
>> > Thanks
>>
>>
>>


.



Relevant Pages

  • Re: Nobody should ever need to patch the kernel!!
    ... The code if a driver may not. ... Modules are *required* to be built against the exact kernel ... Well at least I _can_ install system level software in Linux. ... | I don't know the hardware specifics of winmodem in particular, ...
    (comp.os.linux.development.system)
  • Re: easy alsa patches for the stable kernel?
    ... They even find their way into the stable-tree since ... longer to get into the kernel. ... But we nevertheless need to find a way to make todays hardware ... hardware-vendor is not the driver author at the same time (like in the ...
    (Linux-Kernel)
  • Re: [somewhat OT] binary modules agaaaain
    ... This is my last mail on this subject with lkml cc:ed, ... They can often be solved with some effort (i.e. Intel WLAN driver). ... > the drivers for their hardware for quality reasons. ... I personally hate kernel politics and try to concentrate on kernel hacking. ...
    (Linux-Kernel)
  • Re: [PATCH 02/12] Blackfin arch: Add label to call new GPIO API
    ... That is part of the natural evolution of the kernel isn't it - per ... driver requested, was already claimed by yyy driver". ... But requires custom bootloaders or board setup for every hardware ... For other systems - where you can have a UART on any pin - I completely ...
    (Linux-Kernel)
  • Re: why no gcc in 9.1 personal?
    ... - They licensed the driver or part of it from someone else. ... They fear that broken drivers could damage the hardware, ... A driver or at least the kernel interface of the driver ... has to be compiled on the target machine with the very same compiler ...
    (alt.os.linux.suse)