pm_qos_enable_show(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ pm_qos_enable_show(9) ✨

okay so β€” welcome to the Kernel API Manual, bestie πŸ’… this one's a lil sysfs handler and honestly it's iconic in its simplicity. sit down, hydrate, let's go 🫢


🌸 NAME 🌸

pm_qos_enable_show β€” the sysfs handler that shows you the pm qos enable value ✨ that's literally her whole job and she does it flawlessly, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

ssize_t pm_qos_enable_show (struct device *dev , struct device_attribute
*attr , char *buf );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device that's associated with the UFS controller πŸ’– like, that's her person, that's who she's showing up for.
  • attr β€” the sysfs attribute handle 🌈 the lil grip she holds onto in sysfs land.
  • buf β€” the buffer for the sysfs file 🧚 bestie this is where the answer gets written, it's the whole point.

πŸ’œ DESCRIPTION πŸ’œ

so what does she actually do?? she prints 1 if the PM QoS feature is enabled, and 0 if it's disabled 🎯 that's it. that's the vibe check. one digit, fully committed, zero drama πŸ™ˆ

and her return value? she returns the number of characters written to buf ⭐ literally "here's how much I wrote, you're welcome."

ngl she's a tiny function but she's giving main character energy β€” a whole feature's on/off state, reported in a single character πŸ’€βœ¨

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/ufs/core/ufs-sysfs.c πŸ”₯ (her home address, gone but not forgotten)
  • pm_qos_enable_store(9) πŸ“ (her partner in crime β€” she shows, they store, iykyk)

and that's the whole page, bestie πŸŽ€ shoutout to ./drivers/ufs/core β€” that's where she lives β€” and this whole lil doc is dated October 2026 ⭐ slay, see you in the next manpage πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from