Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
kmod.h File Reference
#include <linux/gfp.h>
#include <linux/stddef.h>
#include <linux/errno.h>
#include <linux/compiler.h>
#include <linux/workqueue.h>
#include <linux/sysctl.h>

Go to the source code of this file.

Data Structures

struct  subprocess_info
 

Macros

#define KMOD_PATH_LEN   256
 
#define try_then_request_module(x, mod...)   (x)
 
#define UMH_NO_WAIT   0 /* don't wait at all */
 
#define UMH_WAIT_EXEC   1 /* wait for the exec, but not the process */
 
#define UMH_WAIT_PROC   2 /* wait for the process to complete */
 
#define UMH_KILLABLE   4 /* wait for EXEC/PROC killable */
 

Enumerations

enum  umh_disable_depth { UMH_ENABLED = 0, UMH_FREEZING, UMH_DISABLED }
 

Functions

int call_usermodehelper_fns (char *path, char **argv, char **envp, int wait, int(*init)(struct subprocess_info *info, struct cred *new), void(*cleanup)(struct subprocess_info *), void *data)
 
void usermodehelper_init (void)
 
int __usermodehelper_disable (enum umh_disable_depth depth)
 
void __usermodehelper_set_disable_depth (enum umh_disable_depth depth)
 
int usermodehelper_read_trylock (void)
 
long usermodehelper_read_lock_wait (long timeout)
 
void usermodehelper_read_unlock (void)
 

Variables

struct ctl_table usermodehelper_table []
 

Macro Definition Documentation

#define KMOD_PATH_LEN   256

Definition at line 29 of file kmod.h.

#define try_then_request_module (   x,
  mod... 
)    (x)

Definition at line 44 of file kmod.h.

#define UMH_KILLABLE   4 /* wait for EXEC/PROC killable */

Definition at line 54 of file kmod.h.

#define UMH_NO_WAIT   0 /* don't wait at all */

Definition at line 51 of file kmod.h.

#define UMH_WAIT_EXEC   1 /* wait for the exec, but not the process */

Definition at line 52 of file kmod.h.

#define UMH_WAIT_PROC   2 /* wait for the process to complete */

Definition at line 53 of file kmod.h.

Enumeration Type Documentation

Enumerator:
UMH_ENABLED 
UMH_FREEZING 
UMH_DISABLED 

Definition at line 83 of file kmod.h.

Function Documentation

int __usermodehelper_disable ( enum umh_disable_depth  depth)

__usermodehelper_disable - Prevent new helpers from being started. : New value to assign to usermodehelper_disabled.

Set usermodehelper_disabled to and wait for running helpers to exit.

Definition at line 451 of file kmod.c.

void __usermodehelper_set_disable_depth ( enum umh_disable_depth  depth)

__usermodehelper_set_disable_depth - Modify usermodehelper_disabled. : New value to assign to usermodehelper_disabled.

Change the value of usermodehelper_disabled (under umhelper_sem locked for writing) and wakeup tasks waiting for it to change.

Definition at line 437 of file kmod.c.

int call_usermodehelper_fns ( char path,
char **  argv,
char **  envp,
int  wait,
int(*)(struct subprocess_info *info, struct cred *new)  init,
void(*)(struct subprocess_info *)  cleanup,
void data 
)

Definition at line 616 of file kmod.c.

void usermodehelper_init ( void  )

Definition at line 713 of file kmod.c.

long usermodehelper_read_lock_wait ( long  timeout)

Definition at line 397 of file kmod.c.

int usermodehelper_read_trylock ( void  )

Definition at line 367 of file kmod.c.

void usermodehelper_read_unlock ( void  )

Definition at line 424 of file kmod.c.

Variable Documentation

struct ctl_table usermodehelper_table[]

Definition at line 695 of file kmod.c.