call_usermodehelper_keys — start a usermode application
int call_usermodehelper_keys ( | char * | path, |
| char ** | argv, | |
| char ** | envp, | |
| struct key * | session_keyring, | |
| int | wait); |
pathpathname for the application
argvnull-terminated argument list
envpnull-terminated environment list
session_keyringsession keyring for process (NULL for an empty keyring)
waitwait for the application to finish and return status. when -1 don't wait at all, but you get no useful error back when the program couldn't be exec'ed. This makes it safe to call from interrupt context.