wdrtas_ioctl(9)
π wdrtas_ioctl β the manual page, but make it make sense
okay so real talk, this is the wdrtas_ioctl page from the Kernel API Manual, and it's genuinely one of the shorter ones so we can absolutely get through this together, bestie. it's about the ioctl function for the watchdog device. that's the whole vibe. let's go π
β¨ NAME β¨
wdrtas_ioctl β literally the ioctl function for the watchdog device. that's it, that's the name, she's self-explanatory and iconic for it π
πΈ SYNOPSIS πΈ
long wdrtas_ioctl (struct file *file , unsigned int cmd , unsigned long
arg );
yes the line break in the middle of the args is real, don't come for me, that's just how the page is laid out π«Ά
π¦ ARGUMENTS π¦
she takes three and honestly they're all giving exactly what you'd expect:
fileβ the file structure. just... the file structure. that's the lore πcmdβ the command for ioctl. this is the "what do you want me to do" of it all.argβ the argument pointer. the little sidecar of extra info that rides along withcmdβ¨
π DESCRIPTION π
okay so here's the actual tea:
- returns
0on success, and<0on failure. no in-between, no "it depends", just pass or flop π wdrtas_ioctlimplements the watchdog API ioctls. that's her job, that's her whole main character energy π
ngl this page is short and sweet, but that's fine β not every function needs a whole saga. some of them just slay quietly. π
π SEE ALSO π
the kernel file she lives in is ./drivers/watchdog/wdrtas.c β go read it if you want the deep lore, iykyk π
and here's the whole friend group, fr fr. all of these are (9) man pages, every single one, no cap:
wdrtas_set_interval(9)wdrtas_get_interval(9)wdrtas_timer_start(9)wdrtas_timer_stop(9)wdrtas_timer_keepalive(9)wdrtas_get_temperature(9)wdrtas_get_status(9)wdrtas_get_boot_status(9)wdrtas_open(9)wdrtas_close(9)wdrtas_temp_read(9)wdrtas_temp_open(9)wdrtas_temp_close(9)wdrtas_reboot(9)wdrtas_get_tokens(9)wdrtas_unregister_devs(9)wdrtas_register_devs(9)wdrtas_init(9)wdrtas_exit(9)
like... that's the entire cast. go say hi to all of them, they're all in ./drivers/watchdog too π§
and that's the page!! this came out of the kernel docs directory ./drivers/watchdog, dated October 2026 β so yeah, write that down, cite her, she's a whole timestamp πβ¨ bye bestie, go read the other nineteen now π«Ά
π¦ 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