kmsg_dump_unregister(9)
π kmsg_dump_unregister (kernel API manual, bestie edition)
Ok so picture this: you're deep in the kernel API manual, section 9, and you've found the page for kmsg_dump_unregister. Welcome, bestie, this is the un-registration page π
β¨ NAME β¨
kmsg_dump_unregister β literally the "unregister a kmsg dumper" function. That's the whole vibe. π«
πΈ SYNOPSIS πΈ
int kmsg_dump_unregister (struct kmsg_dumper *dumper );
Like, that's it. One function, one argument, returns an int. Slay. β¨
π¦ ARGUMENTS π¦
dumperβ pointer to thekmsg_dumperstructure π like, the actual struct you're trying to remove from the system. This is the main character of the whole call, no cap.
π₯ DESCRIPTION π₯
So what does it do? It removes a dump device from the system. That's the tea β
Returns zero on success β and -EINVAL otherwise. So basically: 0 means we ate and left no crumbs, and -EINVAL means something in the argument didn't vibe check π Not me being dramatic, that's just what the return values are, fr fr.
Heads up bestie: the return type isint, and the only two outcomes documented here are zero for success and-EINVALfor anything else. Don't go inventing extra error codes, I'm begging π
π SEE ALSO π
The whole printk friend group π«Ά β genuinely iconic lineup, every single one:
- Kernel file
./kernel/printk/printk.c console_list_lock(9)console_list_unlock(9)console_srcu_read_lock(9)console_srcu_read_unlock(9)console_lock_spinning_enable(9)console_lock_spinning_disable_and_check(9)console_trylock_spinning(9)printk_parse_prefix(9)add_preferred_console(9)match_devname_and_update_preferred_console(9)console_suspend_all(9)console_cpu_notify(9)console_lock(9)console_trylock(9)console_unlock(9)console_flush_on_panic(9)printk_kthreads_shutdown(9)console_force_preferred_locked(9)pr_flush(9)wake_up_klogd(9)defer_console_output(9)printk_trigger_flush(9)printk_timed_ratelimit(9)kmsg_dump_register(9)kmsg_dump_desc(9)kmsg_dump_get_line(9)kmsg_dump_get_buffer(9)kmsg_dump_rewind(9)console_try_replay_all(9)__printk_cpu_sync_wait(9)__printk_cpu_sync_try_get(9)__printk_cpu_sync_put(9)
iykyk π
And that's the page, bestie! Sign-off time: this lil gem lives in ./kernel/printk, dated October 2026 β go forth and unregister 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