call_usermodehelper_setfns — set a cleanup/init function
void fsfunccall_usermodehelper_setfns ( | struct subprocess_info * info, |
int (*init)
(struct subprocess_info *info, struct cred *new), | |
void (*cleanup)
(struct subprocess_info *info), | |
void * data); |
infoa subprocess_info returned by call_usermodehelper_setup
initan init function
cleanupa cleanup function
dataarbitrary context sensitive data
The init function is used to customize the helper process prior to exec. A non-zero return code causes the process to error out, exit, and return the failure to the calling process
The cleanup function is just before ethe subprocess_info is about to be freed. This can be used for freeing the argv and envp. The Function must be runnable in either a process context or the context in which call_usermodehelper_exec is called.