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

NAME

6       call_usermodehelper_setup - prepare to call a usermode helper
7

SYNOPSIS

9       struct subprocess_info * call_usermodehelper_setup(char * path,
10                                                          char ** argv,
11                                                          char ** envp,
12                                                          gfp_t gfp_mask,
13                                                          int (*init) (struct subprocess_info *info, struct cred *new),
14                                                          void (*cleanup) (struct subprocess_info *info),
15                                                          void * data);
16

ARGUMENTS

18       path
19           path to usermode executable
20
21       argv
22           arg vector for process
23
24       envp
25           environment for process
26
27       gfp_mask
28           gfp mask for memory allocation
29
30       init
31           an init function
32
33       cleanup
34           a cleanup function
35
36       data
37           arbitrary context sensitive data
38

DESCRIPTION

40       Returns either NULL on allocation failure, or a subprocess_info
41       structure. This should be passed to call_usermodehelper_exec to exec
42       the process and free the structure.
43
44       The init function is used to customize the helper process prior to
45       exec. A non-zero return code causes the process to error out, exit, and
46       return the failure to the calling process
47
48       The cleanup function is just before ethe subprocess_info is about to be
49       freed. This can be used for freeing the argv and envp. The Function
50       must be runnable in either a process context or the context in which
51       call_usermodehelper_exec is called.
52
54Kernel Hackers Manual 3.10         June 2019           CALL_USERMODEHELPER_(9)
Impressum