Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
kobject_uevent.c File Reference
#include <linux/spinlock.h>
#include <linux/string.h>
#include <linux/kobject.h>
#include <linux/export.h>
#include <linux/kmod.h>
#include <linux/slab.h>
#include <linux/user_namespace.h>
#include <linux/socket.h>
#include <linux/skbuff.h>
#include <linux/netlink.h>
#include <net/sock.h>
#include <net/net_namespace.h>

Go to the source code of this file.

Functions

int kobject_action_type (const char *buf, size_t count, enum kobject_action *type)
 
int kobject_uevent_env (struct kobject *kobj, enum kobject_action action, char *envp_ext[])
 
 EXPORT_SYMBOL_GPL (kobject_uevent_env)
 
int kobject_uevent (struct kobject *kobj, enum kobject_action action)
 
 EXPORT_SYMBOL_GPL (kobject_uevent)
 
int add_uevent_var (struct kobj_uevent_env *env, const char *format,...)
 
 EXPORT_SYMBOL_GPL (add_uevent_var)
 

Variables

u64 uevent_seqnum
 
char uevent_helper [UEVENT_HELPER_PATH_LEN] = CONFIG_UEVENT_HELPER_PATH
 

Function Documentation

int add_uevent_var ( struct kobj_uevent_env env,
const char format,
  ... 
)

add_uevent_var - add key value string to the environment buffer : environment buffer structure : printf format for the key=value pair

Returns 0 if environment variable was added successfully or -ENOMEM if no space was available.

Definition at line 345 of file kobject_uevent.c.

EXPORT_SYMBOL_GPL ( kobject_uevent_env  )
EXPORT_SYMBOL_GPL ( kobject_uevent  )
EXPORT_SYMBOL_GPL ( add_uevent_var  )
int kobject_action_type ( const char buf,
size_t  count,
enum kobject_action type 
)

kobject_action_type - translate action string to numeric type

: buffer containing the action string, newline is ignored : length of buffer : pointer to the location to store the action type

Returns 0 if the action string was recognized.

Definition at line 63 of file kobject_uevent.c.

int kobject_uevent ( struct kobject kobj,
enum kobject_action  action 
)

kobject_uevent - notify userspace by sending an uevent

: action that is happening : struct kobject that the action is happening to

Returns 0 if kobject_uevent() is completed with success or the corresponding error when it fails.

Definition at line 331 of file kobject_uevent.c.

int kobject_uevent_env ( struct kobject kobj,
enum kobject_action  action,
char envp_ext[] 
)

kobject_uevent_env - send an uevent with environmental data

: action that is happening : struct kobject that the action is happening to : pointer to environmental data

Returns 0 if kobject_uevent_env() is completed with success or the corresponding error when it fails.

Definition at line 131 of file kobject_uevent.c.

Variable Documentation

char uevent_helper[UEVENT_HELPER_PATH_LEN] = CONFIG_UEVENT_HELPER_PATH

Definition at line 32 of file kobject_uevent.c.

u64 uevent_seqnum

Definition at line 31 of file kobject_uevent.c.