MCPcopy Create free account
hub / github.com/F-Stack/f-stack / resource_list_find

Function resource_list_find

freebsd/kern/subr_bus.c:3283–3293  ·  view source on GitHub ↗

* @brief Find a resource entry by type and rid. * * @param rl the resource list to search * @param type the resource entry type (e.g. SYS_RES_MEMORY) * @param rid the resource identifier * * @returns the resource entry pointer or NULL if there is no such * entry. */

Source from the content-addressed store, hash-verified

3281 * entry.
3282 */
3283struct resource_list_entry *
3284resource_list_find(struct resource_list *rl, int type, int rid)
3285{
3286 struct resource_list_entry *rle;
3287
3288 STAILQ_FOREACH(rle, rl, link) {
3289 if (rle->type == type && rle->rid == rid)
3290 return (rle);
3291 }
3292 return (NULL);
3293}
3294
3295/**
3296 * @brief Delete a resource entry.

Callers 15

jz4780_pinctrl_attachFunction · 0.85
apb_alloc_resourceFunction · 0.85
apb_release_resourceFunction · 0.85
apb_alloc_resourceFunction · 0.85
apb_release_resourceFunction · 0.85
nexus_alloc_resourceFunction · 0.85
nexus_get_resourceFunction · 0.85
gic_v3_ofw_bus_alloc_resFunction · 0.85
nexus_alloc_resourceFunction · 0.85
arm_gic_alloc_resourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected