Query: idr_destroy
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IDR_DESTROY(9) Basic Kernel Library Functions IDR_DESTROY(9)NAMEidr_destroy - release all cached layers within an idr treeSYNOPSISvoid idr_destroy(struct idr * idp);ARGUMENTSidp idr handleDESCRIPTIONFree all id mappings and all idp_layers. After this function, idp is completely unused and can be freed / recycled. The caller is responsible for ensuring that no one else accesses idp during or after idr_destroy. A typical clean-up sequence for objects stored in an idr tree will use idr_for_each to free all objects, if necessay, then idr_destroy to free up the id mappings and cached idr_layers.COPYRIGHTKernel Hackers Manual 3.10 June 2014 IDR_DESTROY(9)