nfs-ganesha 1.4
|
register.c: registration routine More...
Go to the source code of this file.
Functions | |
int | register_ro_string (oid *myoid, int oid_len, char *string, netsnmp_handler_registration **phandler) |
int | reg_scal (oid *myoid, size_t oid_len, void *value, unsigned char type, int access, netsnmp_handler_registration *phandler_tab[2]) |
int | reg_get_set (oid *myoid, size_t oid_len, unsigned char type, int access, netsnmp_handler_registration *phandler_tab[2]) |
int | reg_proc (oid *myoid, size_t oid_len, netsnmp_handler_registration **phandler) |
int | unreg_instance (netsnmp_handler_registration *myreg) |
register.c: registration routine
Definition in file register.c.
int reg_get_set | ( | oid * | myoid, |
size_t | oid_len, | ||
unsigned char | type, | ||
int | access, | ||
netsnmp_handler_registration * | phandler_tab[2] | ||
) |
Register scalar variable by getter setter. we actually register two thing : the type and the value.
myoid | oid |
oid_len | oid length |
type | type of the value. |
access | access right. |
phandler_tab | output parameters, contain the netsnmp handlers registration of the value and type. |
Definition at line 134 of file register.c.
int reg_proc | ( | oid * | myoid, |
size_t | oid_len, | ||
netsnmp_handler_registration ** | phandler | ||
) |
Register a procedure
myoid | oid |
oid_len | oid length |
phandler | output parameters, contain the netsnmp handler registration (trigger node). |
Definition at line 195 of file register.c.
int reg_scal | ( | oid * | myoid, |
size_t | oid_len, | ||
void * | value, | ||
unsigned char | type, | ||
int | access, | ||
netsnmp_handler_registration * | phandler_tab[2] | ||
) |
Register scalar variable by pointer. we actually register two thing : the type and the value.
myoid | oid |
oid_len | oid length |
value | pointer on the value to register. |
type | type of the value. |
access | access right. |
phandler_tab | output parameters, contain the netsnmp handlers registration of the value and type. |
myoid has enough memory
Definition at line 50 of file register.c.
int register_ro_string | ( | oid * | myoid, |
int | oid_len, | ||
char * | string, | ||
netsnmp_handler_registration ** | phandler | ||
) |
Register a read only string
myoid | oid |
oid_len | oid length |
string | string to register. |
phandler | output parameter, contain the netsnmp handler registration of the string. |
Definition at line 23 of file register.c.
int unreg_instance | ( | netsnmp_handler_registration * | myreg | ) |
FIXME bug snmp valgrind say Invalid read of size 1 sometime snmpd crash on exit
Definition at line 205 of file register.c.