VM_PAGE_RENAME(9)

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

🌸 vm_page_rename(9) β€” move a page 🌸

bestie, welcome to the Kernel Developer's Manual, section 9 β€” this one is literally called VM_PAGE_RENAME(9) and it is all about moving a page. no cap. 🫢


✨ NAME ✨

vm_page_rename β€” move a page

πŸ¦‹ SYNOPSIS πŸ¦‹

#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);

πŸ’– DESCRIPTION πŸ’–

okay so the vm_page_rename() function removes a page from one object and adds it to another at the given page index. the page gets added to the given object, and it is removed from the object that is currently associated with. πŸ’…

if the page is currently on the cache queue, it will be deactivated β€” unless it is wired or unmanaged, and in that case the deactivation will fail. 😭 the entire page is marked as dirty after the move. periodt.

the arguments to vm_page_rename() are:

  • m β€” the page to move.
  • new_object β€” the object the page should be inserted into.
  • new_pindex β€” the page index into new_object at which the new page should be inserted.

πŸ‘‘ AUTHORS πŸ‘‘

this manual page was written by Chad David <davidc@acns.ab.ca>. 🫢


and that is the whole vibe check, bestie πŸ’– this page is from Debian, dated July 17, 2001, and it is filed under VM_PAGE_RENAME(9). slay. πŸ’…βœ¨

πŸ“¦ where this page comes from