usb_resume_both(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is the Kernel API Manual page for usb_resume_both(9), and the name is literally usb_resume_both β€” resume a USB device and its interfaces ✨. It’s giving β€œwake up, babe, we’re resuming USB stuff” energy πŸ’….

✨ SYNOPSIS ✨

int usb_resume_both (struct usb_device *udev , pm_message_t msg );

πŸŽ€ ARGUMENTS πŸŽ€

  • udev β€” the usb_device to resume πŸ¦‹
  • msg β€” Power Management message describing this state transition ⭐

🌸 DESCRIPTION 🌸

This is the central routine for resuming USB devices. It calls the resume method for udev and then calls the resume methods for all the interface drivers in udev. No cap, it’s the main character of USB resume πŸ’….

Autoresume requests originating from a child device or an interface driver may be made without the protection of udev's device lock, but all other resume calls will hold the lock. Usbcore will insure that method calls do not arrive during bind, unbind, or reset operations. However, drivers must be prepared to handle resume calls arriving at unpredictable times 😭.

This routine can run only in process context. Periodt. 🫢

πŸ”₯ RETURN πŸ”₯

0 on success. That’s the whole return vibe, bestie β€” zero means slay βœ….

🌈 SEE ALSO 🌈

Kernel file ./drivers/usb/core/driver.c says hi, and these besties are linked too:


okay that’s the page, bestie 🫢 source/version: ./drivers/usb/core β€’ date: October 2026 β€’ usb_resume_both(9) signing off πŸ’…βœ¨

πŸ“¦ where this page comes from