vmballoon_dequeue_page_list(9)
π vmballoon_dequeue_page_list(9) π
okay so this is a page straight out of the Kernel API Manual, and bestie, it's a little function with a big job. sit down, grab a strawberry π, let's get into it.
β¨ NAME β¨
vmballoon_dequeue_page_list β the one that de-queues page lists for deflation π
πΈ SYNOPSIS πΈ
void vmballoon_dequeue_page_list (struct vmballoon *b , struct list_head
*pages , unsigned int *n_pages , enum vmballoon_page_size_type page_size
, unsigned int n_req_pages );
like, it returns void. it does the thing and it leaves. no notes. π
π¦ ARGUMENTS π¦
bβ pointer to the balloon. yep, the balloon itself. main character energy πpagesβ list of pages to enqueue. this is where the pages go.n_pagesβ pointer to the number of pages in the list. heads up: the value gets zeroed, so don't come for her expecting the old number πpage_sizeβ tells you whether the pages are2MBor4KBpages. big girls and lil guys, both valid πn_req_pagesβ the number of requested pages. i.e. how many you're asking for.
π§ DESCRIPTION π§
so what it actually does: it dequeues the number of requested pages from the balloon for deflation. slay.
but ngl, there's a vibe check here β the number of dequeued pages may be lower if there aren't enough pages in the requested size available. so like, she'll give you what she can, but she's not gonna invent pages out of thin air, no cap. π
β SEE ALSO β
okay this list is long and honestly iconic for it. iykyk. all of these live in the kernel file ./drivers/misc/vmw_balloon.c:
enum vmballoon_cmd_type(9)struct vmballoon_batch_entry(9)vmballoon_send_guest_id(9)vmballoon_page_order(9)vmballoon_page_in_frames(9)vmballoon_mark_page_offline(9)vmballoon_mark_page_online(9)vmballoon_send_get_target(9)vmballoon_alloc_page_list(9)vmballoon_handle_one_result(9)vmballoon_status_page(9)vmballoon_lock_op(9)vmballoon_add_page(9)vmballoon_lock(9)vmballoon_release_page_list(9)vmballoon_change(9)vmballoon_enqueue_page_list(9)vmballoon_split_refused_pages(9)vmballoon_inflate(9)vmballoon_deflate(9)vmballoon_deinit_batching(9)vmballoon_init_batching(9)vmballoon_vmci_init(9)vmballoon_pop(9)vmballoon_work(9)vmballoon_shrinker_scan(9)vmballoon_shrinker_count(9)vmballoon_debug_show(9)vmballoon_migratepage(9)
π«Ά friendly reminder that this whole page comes from the ./drivers/misc source, dated October 2026. that's the version, that's the date, and that's the tea. periodt. π
β¨π
bye bestie, go dequeue responsibly ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms