Re: device_shutdown()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 08, 2003 at 10:36:30PM +0300, Suleyman O Turkyilmaz wrote:
> Quoting Greg KH <greg@kroah.com>:
> 
> > On Tue, Jul 08, 2003 at 09:00:00PM +0200, Jose Luis Alarcon wrote:
> > >    Hi all in the list.
> > > 
> > >   Can i invoke the device_shutdown() function since a program
> > > in the user space?. What is the include needed?
> > 
> > Call sys_reboot().
> > 
> doesn't user have to be root for this ?

Yes, but the original question did not stipulate that you could not be
root to do this :)

greg k-h
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux