cgroup_writeback_by_id(9)
cgroup_writeback_by_id(9) π β¨
β¨ NAME β¨
cgroup_writeback_by_id β initiate cgroup writeback from bdi and memcg IDs. okay so this page is straight out of the Kernel API Manual, and it's literally the βstart the flush by IDsβ moment. no cap, we're keeping every detail, bestie. π
π SYNOPSIS π
here's the exact signature, character-for-character, do not @ me:
int cgroup_writeback_by_id (u64 bdi_id , int memcg_id , enum wb_reason
reason , struct wb_completion *done );
the signature says it returns int, and the vibe is very kernel API. π
π ARGUMENTS π
four args, all main characters:
bdi_idβ target bdi id, the one and only. π¦memcg_idβ target memcg css id, slay. πΈreasonβ reason why some writeback work initiated; it's giving context. πdoneβ targetwb_completion, the completion bestie. π«Ά
π DESCRIPTION π
okay so what it does: initiate flush of the bdi_writeback identified by bdi_id and memcg_id with the specified parameters. that's the whole description, and honestly it ate. β¨
π₯ SEE ALSO π₯
Kernel file ./fs/fs-writeback.c is where this lives, and here are all the related besties β no skips, periodt:
inode_io_list_move_locked(9)wb_wait_for_completion(9)inode_cgwb_move_to_attached(9)locked_inode_to_wb_and_lock_list(9)inode_to_wb_and_lock_list(9)inode_switch_wbs(9)cleanup_offline_cgwb(9)wbc_attach_and_unlock_inode(9)wbc_attach_fdatawrite_inode(9)wbc_detach_inode(9)wbc_account_cgroup_owner(9)wb_split_bdi_pages(9)bdi_split_work_to_wbs(9)cgroup_writeback_umount(9)wb_start_background_writeback(9)filemap_dontcache_kick_writeback(9)__mark_inode_dirty(9)writeback_inodes_sb_nr(9)writeback_inodes_sb(9)try_to_writeback_inodes_sb(9)sync_inodes_sb(9)write_inode_now(9)sync_inode_metadata(9)
mwah π this cutie is from the ./fs source/version and is dated October 2026 β title still cgroup_writeback_by_id(9), bye bestie! π
π¦ 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