/* Machine description operations are to be surrounded by grab and * release calls. The mdesc_handle returned from the grab is * the first argument to all of the operational calls that work * on mdescs.
*/ struct mdesc_handle *mdesc_grab(void); void mdesc_release(struct mdesc_handle *);
/* Access to property values returned from mdesc_get_property() are * only valid inside of a mdesc_grab()/mdesc_release() sequence. * Once mdesc_release() is called, the memory backed up by these * pointers may reference freed up memory. * * Therefore callers must make copies of any property values * they need. * * These same rules apply to mdesc_node_name().
*/ constvoid *mdesc_get_property(struct mdesc_handle *handle,
u64 node, constchar *name, int *lenp); constchar *mdesc_node_name(struct mdesc_handle *hp, u64 node);
/* MD arc iteration, the standard sequence is: * * unsigned long arc; * mdesc_for_each_arc(arc, handle, node, MDESC_ARC_TYPE_{FWD,BACK}) { * unsigned long target = mdesc_arc_target(handle, arc); * ... * }
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.