VM_PAGE_RENAME(9)
π VM_PAGE_RENAME β move a page π
okay bestie, this one's a <pink>Kernel Developer's Manual</pink> page, section 9, and it's literally about moving a page from one place to another. tiny function, big responsibilities. let's get into it β¨
πΈ NAME πΈ
vm_page_rename β move a page π¦
β¨ SYNOPSIS β¨
first you gotta pull in the headers, no skipping:
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_page.h>
void
vm_page_rename(vm_page_t m, vm_object_t new_object,
vm_pindex_t new_pindex);
it returns void, so likeβ¦ it gives nothing back. it just does the thing. main character energy honestly π
π DESCRIPTION π
so here's the vibe: vm_page_rename() removes a page from one object and adds it to another, at whatever page index you tell it. the page gets added to the object you hand it, and removed from the object it's currently associated with. it's giving "moving out, new lease, no forwarding address" π
now the β¨teaβ¨: if the page is currently sitting on the cache queue, it will be deactivated β unless it's wired or unmanaged, in which case, bestie, the deactivation will simply fail. no cap. π
and after the whole move is done, the entire page is marked as dirty. every last bit of it. it's been through something, okay? π
π§ the arguments (yes, all three of them) π§
mβ the page you're moving. the little guy in transit. πnew_objectβ the object the page should be inserted into. its new home π‘new_pindexβ the page index intonew_objectat which the new page should be inserted. like, the exact spot on the shelf. π
π AUTHORS π
this manual page was written by Chad David <davidc@acns.ab.ca>. thank you chad, we appreciate you fr fr π«Ά
and that's the whole page, bestie! this one's from the Debian release, dated July 17, 2001 β yeah, it's an elder, but it still ate. 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