VM_PAGE_LOOKUP(9)

πŸ’– VM_PAGE_LOOKUP πŸ’–

okay bestie, so this is a page from the Kernel Developer's Manual β€” section 9, the kernel-nerd corner of the man pages β€” and it's all about vm_page_lookup. iykyk πŸ¦‹


✨ NAME ✨

vm_page_lookup β€” lookup a vm page πŸ”


🌸 SYNOPSIS 🌸

like, here's the whole vibe, verbatim, no cap:

#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_page.h>

vm_page_t
vm_page_lookup(vm_object_t object, vm_pindex_t pindex);

πŸŽ€ DESCRIPTION πŸŽ€

so vm_page_lookup() goes hunting for a VM page, and you tell it which one you want by handing it a VM object plus an index. that's the whole quest 🧚

if the page isn't found? you get NULL back. that's it, that's the deal, no page for you πŸ™ˆ

its arguments are, like, literally just these two:

  • object β€” the VM object you wanna search on. this is the thing you're digging through πŸ’…
  • pindex β€” the page index you're searching on. this is the little address-y coordinate inside it ✨

🌈 RETURN VALUES 🌈

if it works out, you get a vm_page_t back β€” slay πŸ‘‘

if it does not work out, you get NULL. not found, not your page, move along 🫢


πŸ‘‘ AUTHORS πŸ‘‘

this manual page was written by Chad David <davidc@acns.ab.ca>. iconic behavior fr fr, thank you for your service πŸ«‘πŸ’–


lowkey a very short page but every single detail is here, i would never do you like that bestie πŸ₯Ί

and that's the whole thing!! this cutie came from Debian, dated July 13, 2001, and it lives in section 9 of the Kernel Developer's Manual. periodt πŸ’…πŸ’œ

πŸ“¦ where this page comes from