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
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms