idr_destroy (9) - Linux Man Pages
idr_destroy: release all cached layers within an idr tree
idr_destroy - release all cached layers within an idr tree
void idr_destroy(struct idr
- idr handle
Free 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.