STRUCT ZD_USB_TX(9)
π struct zd_usb_tx(9) β the kernel API manual, bestie edition
okay so picture this: it's a page straight out of the Kernel API Manual, section 9, and it's about one (1) struct. yes we're doing a whole manual page for a struct. iconic behaviour honestly π
β¨ NAME β¨
struct zd_usb_tx β the structure used for transmitting frames π¦
β¨ SYNOPSIS β¨
struct zd_usb_tx {
atomic_t enabled;
spinlock_t lock;
struct delayed_work watchdog_work;
struct sk_buff_head submitted_skbs;
struct usb_anchor submitted;
int submitted_urbs;
u8 stopped:1, watchdog_enabled:1;
};
like, look at her. main character struct energy. π
β¨ Members β¨
enabledβ an atomic enabled flag π« β basically it tells you whether tx is enabled or not, no caplockβ the lock for transmission π β yes she's got a lock, the vibes must be protectedsubmittedβ the anchor for URBs sent to device β β that's where the sent URBs hang outsubmitted_urbsβ an atomic integer that counts the URBs having sent to the device, which haven't been completed π β so like, in-flight, not-yet-finished URBs, and it's counting them atomically fr frstoppedβ indicates whether higher level tx queues are stopped π β highkey important to know
ngl the struct up there in the synopsis also haswatchdog_work,submitted_skbsandwatchdog_enabled:1living in it, and the page has zero commentary on those, so I'm not gonna invent any. we respect the source π
π SEE ALSO π
Kernel file ./drivers/net/wireless/zydas/zd1211rw/zd_usb.h β go read the source bestie, iykyk π
and that's the whole vibe check β¨ this little gem came from ./drivers/net/wireless/zydas/z..., dated October 2026 β periodt, no notes π
πΈ
π¦ 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