usb_of_has_combined_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

usb_of_has_combined_node β€” bestie, this is the function that determines whether a device has a combined node. We’re in the Kernel API Manual, section 9, and yes, it’s iconic ✨

✨ SYNOPSIS ✨

bool usb_of_has_combined_node (struct usb_device *udev );

πŸŽ€ ARGUMENTS πŸŽ€

  • udev β€” the USB device. That’s the one we’re checking, no cap πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this function determines whether a USB device has a so-called combined node, which is shared with its sole interface. It’s giving β€œdevice node and interface are sharing one node” energy 🫢

This is the case if and only if the device has a node and its descriptors report all of the following:

  1. bDeviceClass is 0 or 9, and
  2. bNumConfigurations is 1, and
  3. bNumInterfaces is 1.

🌈 RETURN 🌈

True iff the device has a device node and its descriptors match the criteria for a combined node. So yeah: true when the node exists and the descriptor checklist is fully slaying βœ…

πŸ’– SEE ALSO πŸ’–


Signed off from the source at ./drivers/usb/core, dated October 2026, in the Kernel API Manual β€” usb_of_has_combined_node(9) out πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from