1CALL_USERMODEHELPER_(9)         Module Support         CALL_USERMODEHELPER_(9)
2
3
4

NAME

6       call_usermodehelper_setfns - set a cleanup/init function
7

SYNOPSIS

9       void call_usermodehelper_setfns(struct subprocess_info * info,
10                                       int (*init) (struct subprocess_info *info),
11                                       void (*cleanup) (struct subprocess_info *info),
12                                       void * data);
13

ARGUMENTS

15       info
16           a subprocess_info returned by call_usermodehelper_setup
17
18       init
19           an init function
20
21       cleanup
22           a cleanup function
23
24       data
25           arbitrary context sensitive data
26

DESCRIPTION

28       The init function is used to customize the helper process prior to
29       exec. A non-zero return code causes the process to error out, exit, and
30       return the failure to the calling process
31
32       The cleanup function is just before ethe subprocess_info is about to be
33       freed. This can be used for freeing the argv and envp. The Function
34       must be runnable in either a process context or the context in which
35       call_usermodehelper_exec is called.
36
38Kernel Hackers Manual 2.6.         June 2019           CALL_USERMODEHELPER_(9)
Impressum