usb_offload_set_pm_locked(9)
π usb_offload_set_pm_locked(9) π
okay bestie, welcome to the Kernel API Manual page for usb_offload_set_pm_locked(9) β yes, it's the USB PM-lock one, and we're gonna get through it together π
β¨ NAME β¨
usb_offload_set_pm_locked β set the PM lock state of a USB device
πΈ SYNOPSIS πΈ
void usb_offload_set_pm_locked (struct usb_device *udev , bool locked );
π¦ ARGUMENTS π¦
udevβ the USB device to modify, aka the main character you're passing in π«Άlockedβ the new lock state, no cap
π DESCRIPTION π
so setting locked to true prevents offload_usage from being modified. that's the whole vibe check: it ensures that offload activities cannot be started or stopped during critical power management transitions, which keeps a stable state for the duration of the transition. periodt. π₯
bestie, this is the "don't let offload usage get changed mid-transition" lock, and it's giving stable-state energy β¨
π SEE ALSO π
- Kernel file
./drivers/usb/core/offload.c usb_offload_get(9)usb_offload_put(9)usb_offload_check(9)
cute little sign-off from the footer, bestie: source/version corner is ./drivers/usb/core, dated October 2026, and the page title is usb_offload_set_pm_locked(9) ππ
π¦ 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