debugfs_leave_cancellation(9)
π debugfs_leave_cancellation β leave cancellation section π
okay so bestie, this is a page from the Kernel API Manual (debugfs_leave_cancellation(9), section 9, kernel gang only) and it's honestly short and sweet β the way a good cleanup function SHOULD be. It's the "and we're done here, bye π" counterpart to entering a cancellation section. Let's get into it β¨
πΈ SYNOPSIS πΈ
void debugfs_leave_cancellation (struct file *file, struct debugfs_cancellation *cancellation);
It returns void, so likeβ¦ no return value, no exit status, nothing to check. You just call it and vibe. π«Ά
π¦ ARGUMENTS π¦
fileβ the file being accessed. yep, that file. the one you're currently doing stuff with πcancellationβ the cancellation you previously registered withdebugfs_enter_cancellation. it's the same one!! the matching one!! not a new one, bestie π
no cap: these two arguments are a matched set. you enter withdebugfs_enter_cancellation, you leave withdebugfs_leave_cancellation. iconic symmetry, honestly. π
β¨ DESCRIPTION β¨
so the actual description here is literally just "see the documentation of debugfs_enter_cancellation" β like, the kernel devs said iykyk and pointed you at the other page. π
fr fr, that's the whole description. go read debugfs_enter_cancellation(9) and everything will make sense. this page is the sequel, not the origin story. π¬
π SEE ALSO π
These all live in the kernel file ./fs/debugfs/file.c β here's the whole squad, no one left behind:
debugfs_file_get(9)debugfs_file_put(9)debugfs_enter_cancellation(9)debugfs_create_u8(9)debugfs_create_u16(9)debugfs_create_u32(9)debugfs_create_u64(9)debugfs_create_ulong(9)debugfs_create_x8(9)debugfs_create_x16(9)debugfs_create_x32(9)debugfs_create_x64(9)debugfs_create_size_t(9)debugfs_create_atomic_t(9)debugfs_create_bool(9)debugfs_create_str(9)debugfs_create_blob(9)debugfs_create_u32_array(9)debugfs_print_regs32(9)debugfs_create_regset32(9)debugfs_create_devm_seqfile(9)
π that's the whole page, bestie. short, matched-pair, no drama. leave the cancellation section the way you entered it and everyone stays happy. periodt.
π sign-off time π β this lil beauty comes from the source path ./fs/debugfs, dated October 2026, under the Kernel API Manual. she's official, she's kernel-coded, and she's out ππ§πΈ
π¦ 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