AnsweredAssumed Answered

How to do Call Poweroff from Linux Driver

Question asked by Arun kumar on Aug 3, 2017
Latest reply on Sep 14, 2017 by Arun kumar

Hi,

I want to do GPIO Shutdown in MX51. I did GPIO Interrupt driver and trying to send poweroff command to userspace using 

call_usermodehelper() function. But I am facing issues in that, Unable to run ..... Tell the exact procedure to do shutdown using call_usermode.

 

I am trying one more method. Once if i press the button, inside interrupt function, i want to call power_off function from kernel space instead of using call_usemodehelper() from userspace. So anyone suggest me how to do shutdown. 

 

Thanks

Outcomes