VM_PAGE_LOOKUP(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

✨ NAME ✨

okay bestie, this is VM_PAGE_LOOKUP(9) from the Kernel Developer's Manual β€” and the whole point is literally: vm_page_lookup β€” lookup a vm page πŸ’… no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

main character includes first:

#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 πŸ’–

okay so vm_page_lookup() is out here searching for a VM page given its VM object and index. If the page is not found, NULL is returned. That's the vibe check. Its arguments are:

  • object β€” the VM object to search on.
  • pindex β€” the page index to search on.

🌈 RETURN VALUES 🌈

A vm_page_t is returned if successful; otherwise, NULL is returned. Translation: success = you get a vm_page_t, no success = NULL, periodt πŸ’€βœ¨


πŸ‘‘ AUTHORS πŸ‘‘

This manual page was written by Chad David <davidc@acns.ab.ca>. Give him his flowers πŸ’πŸ«Ά

πŸ’Œ sign-off time: this page comes from Debian, dated July 13, 2001, and yes it’s VM_PAGE_LOOKUP(9) β€” mwah πŸ’‹
πŸ“¦ where this page comes from