Object/String Conversion


Functions

const char * topo_obj_type_string (topo_obj_type_t type)
 Return a stringified topology object type.
topo_obj_type_t topo_obj_type_of_string (const char *string)
 Return an object type from the string.
int topo_obj_snprintf (char *__topo_restrict string, size_t size, topo_topology_t topology, topo_obj_t obj, const char *__topo_restrict indexprefix, int verbose)
 Stringify a given topology object into a human-readable form.
int topo_obj_cpuset_snprintf (char *__topo_restrict str, size_t size, size_t nobj, const topo_obj_t *__topo_restrict objs)
 Stringify the cpuset containing a set of objects.

Function Documentation

int topo_obj_cpuset_snprintf ( char *__topo_restrict  str,
size_t  size,
size_t  nobj,
const topo_obj_t *__topo_restrict  objs 
)

Stringify the cpuset containing a set of objects.

Returns:
how many characters were actually written (not including the ending \0).

int topo_obj_snprintf ( char *__topo_restrict  string,
size_t  size,
topo_topology_t  topology,
topo_obj_t  obj,
const char *__topo_restrict  indexprefix,
int  verbose 
)

Stringify a given topology object into a human-readable form.

Returns:
how many characters were actually written (not including the ending \0).

topo_obj_type_t topo_obj_type_of_string ( const char *  string  ) 

Return an object type from the string.

const char* topo_obj_type_string ( topo_obj_type_t  type  ) 

Return a stringified topology object type.


Generated on Fri Jul 3 19:00:23 2009 for libtopology by  doxygen 1.5.9