pch_udc_pcd_vbus_session(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pch_udc_pcd_vbus_session β€” the Kernel API Manual, section 9, bestie πŸŽ€

okay so real quick before we dive in: this page lives in the Kernel API Manual, section 9. That's the whole ~vibe~ of where this function hangs out. Now let's get into it ✨


🌸 NAME 🌸

pch_udc_pcd_vbus_session β€” this API is used by a driver for an external transceiver (or GPIO) that detects a VBUS power session starting/ending

no cap, that's literally the whole job description. a driver out there is watching for VBUS power sessions kicking off or wrapping up, and it calls this to spill the tea. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int pch_udc_pcd_vbus_session (struct usb_gadget *gadget , int is_active );

like, that's it. one function, two arguments, int coming back at you. iconic. ⭐


πŸ’– ARGUMENTS πŸ’–

  • gadget β€” a reference to the gadget driver. yep, the gadget one. 🫢
  • is_active β€” specifies whether the session is starting or ending. so basically it's the "are we so back or are we done here" flag 🌈

✨ DESCRIPTION ✨

The return codes, laid out for you bestie, no guessing:

  • 0 β€” Success. periodt, we ate. πŸ‘‘
  • -EINVAL β€” if the gadget passed is NULL. so like… if you hand it nothing? it's gonna hand you back -EINVAL. don't do that πŸ™ˆ
ngl that's genuinely all this page says about the description, so I'm not about to invent lore. what you see is what you get πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/usb/gadget/udc/pch_udc.c β€” that's the home base, the main character of this whole file 🏠

and then the extended friend group, in order, every single one of them:

like, that's the whole group chat. ninety-something icons and every one of them slays in their own way πŸ’œ


and that's the page!! 🧚 mwah πŸ’‹

cute lil sign-off before you go: this one's sourced from ./drivers/usb/gadget/udc and it's dated October 2026 β€” so yeah, mark your calendars bestie, that's the version tea πŸ“ bye!! πŸ¦‹

πŸ“¦ where this page comes from