zynqmp_pm_debugfs_api_write(9)
π zynqmp_pm_debugfs_api_write π
okay bestie, real talk β this is a page out of the Kernel API Manual, and it's about zynqmp_pm_debugfs_api_write(9). yes the name is a mouthful, no we're not renaming it, periodt. π
β¨ NAME β¨
zynqmp_pm_debugfs_api_write β the debugfs write function. that's it, that's the whole vibe π¦
πΈ SYNOPSIS πΈ
ssize_t zynqmp_pm_debugfs_api_write (struct file *file , const char
__user *ptr , size_t len , loff_t *off );
like literally look at her. icon behavior. π
π§ ARGUMENTS π§
fileβ the user file, just hanging out, being a file π«Άptrβ the PM-API string that the user typed in (yes, from userspace, protected, careful bb) β¨lenβ how long the userspace buffer is, in case you were wondering πoffβ where you are inside the file, the offset, the position, the moment π«
π DESCRIPTION π
so what does she actually do? she's the one that triggers pm api functions, and the way you do it is genuinely so simple it's giving main character energy:
echo <pm_api_id> > /sys/kernel/debug/zynqmp_pm/power
or, if you're feeling spicy and prefer names over numbers:
echo <pm_api_name> > /sys/kernel/debug/zynqmp_pm/power
yep, both work β id or name, your call, no cap. π
π₯ RETURN π₯
- if the PM-API request goes through β you get the number of bytes copied β¨ slay
- if it doesn't β you get the corresponding error code π not slay, but at least she told you
π SEE ALSO π
go read the kernel file ./drivers/firmware/xilinx/zynqmp-debug.c (iykyk π) and also these besties:
zynqmp_pm_ioctl(9)zynqmp_pm_argument_value(9)get_pm_api_id(9)zynqmp_pm_debugfs_api_read(9)zynqmp_pm_api_debugfs_init(9)zynqmp_pm_api_debugfs_exit(9)
okay that's the whole page, mwah π β this masterpiece lives in ./drivers/firmware/xilinx, dated October 2026, and it'll always be zynqmp_pm_debugfs_api_write(9) to us. go forth and echo responsibly, 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