transport_class_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– transport_class_register(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this is the entry for transport_class_register(9), and it's literally about registering an initial transport class. slay. ✨

🌸 NAME 🌸

transport_class_register β€” register an initial transport class πŸŽ€

✨ SYNOPSIS ✨

int transport_class_register (struct transport_class *tclass );

πŸŽ€ ARGUMENTS πŸŽ€

  • tclass β€” a pointer to the transport_class structure that's getting initialised. that's the whole argument, bestie 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so a transport_class contains an embedded class, and that embedded class is what's used to identify it. iconic little setup, honestly. πŸ’…

the caller should initialise this structure with zeros, and then the generic class must have been initialised with the actual transport class unique name. yes, that exact order β€” zeroes first, unique name on the generic class after. πŸ”₯

there's a macro DECLARE_TRANSPORT_CLASS to do this for you β€” but heads up, bestie: declared classes still must be registered. no skipping the register step, iykyk. 🌈

returns 0 on success, or an error on failure. periodt. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯


mwah πŸ’‹ this page comes from ./drivers/base, is dated October 2026, and belongs to the Kernel API Manual β€” transport_class_register(9), signing off πŸ«ΆπŸ’–

πŸ“¦ where this page comes from