ADD_HOTPLUG_ENV_VAR

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

add_hotplug_env_var - helper for creating hotplug environment variables  

SYNOPSIS

"SYNOPSIS"

int add_hotplug_env_var (char ** envp, int num_envp, int * cur_index, char * buffer, int buffer_size, int * cur_len, const char * format, ...);  

ARGUMENTS

envp
Pointer to table of environment variables, as passed into hotplug method.
num_envp
Number of environment variable slots available, as passed into hotplug method.
cur_index
Pointer to current index into envp. It should be initialized to 0 before the first call to add_hotplug_env_var, and will be incremented on success.
buffer
Pointer to buffer for environment variables, as passed into hotplug method.
buffer_size
Length of buffer, as passed into hotplug method.
cur_len
Pointer to current length of space used in buffer. Should be initialized to 0 before the first call to add_hotplug_env_var, and will be incremented on success.
format
Format for creating environment variable (of the form ``XXX=x'') for snprintf.
...
variable arguments
 

DESCRIPTION

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


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:01:54 GMT, October 09, 2005