lookup_resource(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– lookup_resource(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie ✨ today’s main character is lookup_resource, and it’s giving β€œfind an existing resource by its start address” energy. lowkey simple, highkey useful. πŸŽ€


🌸 NAME 🌸

lookup_resource β€” find an existing resource by a resource start address. periodt. 🫢


✨ SYNOPSIS ✨

struct resource * lookup_resource (struct resource *root ,
resource_size_t start );

πŸŽ€ ARGUMENTS πŸŽ€

  • root β€” root resource descriptor. the root of the whole situation, iykyk. 🌱
  • start β€” resource start address. literally the address we’re checking for, bestie. πŸ“

πŸ’… DESCRIPTION πŸ’…

Returns a pointer to the resource if it’s found, NULL otherwise. that’s the whole plot. no cap. πŸ˜­πŸ’–

so yeah: found = you get a pointer to the resource; not found = NULL. clean, simple, ate. πŸ‘‘


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./kernel/resource.c πŸ—‚οΈ β€” and the resource-adjacent besties are all right here:


mwah πŸ’‹ that’s the whole page, bestie! source/version: ./kernel Β· date: October 2026. byeee πŸ¦‹βœ¨

πŸ“¦ where this page comes from