STRUCT WWAN_PORT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct wwan_port β€” the whole vibe

okay so bestie, this is a page from the Kernel API Manual (that's the manual name, keep it in your notes πŸ““), and it's literally all about struct wwan_port β€” the structure that defines a WWAN port. yes. the structure. the blueprint. the main character. 🫢


✨ NAME ✨

struct wwan_port β€” the structure that defines a WWAN port πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

here's the whole thing, character for character, no cap:

struct wwan_port {
    enum wwan_port_type type;
    unsigned int start_count;
    unsigned long flags;
    const struct wwan_port_ops *ops;
    struct mutex ops_lock;
    struct device dev;
    struct sk_buff_head rxq;
    wait_queue_head_t waitqueue;
    struct mutex data_lock;
    size_t headroom_len;
    size_t frag_len;
    union {
      struct {
        struct ktermios termios;
        int mdmbits;
      } at_data;
      struct gnss_device *gnss;
    };
 };

look at her. iconic. 🌸


πŸ‘‘ Members πŸ‘‘

every single field, explained with love (and accuracy, obviously):

  • type β€” port type. which flavour of port this is, iykyk πŸ“
  • start_count β€” the port start counter. she's counting, bestie.
  • flags β€” stores port state and capabilities πŸ’…
  • ops β€” pointer to WWAN port operations
  • ops_lock β€” protects port ops πŸ”’
  • dev β€” underlying device
  • rxq β€” buffer inbound queue (the queue where inbound stuff sits, vibing)
  • waitqueue β€” the waitqueue for port fops (read/write/poll), literally what fops wait on 😭
  • data_lock β€” port specific data access serialization
  • headroom_len β€” SKB reserved headroom size
  • frag_len β€” length to fragment packet
  • {unnamed_union} β€” anonymous. that's it. that's the whole note. no name, no problem πŸ™ˆ
  • at_data β€” AT port specific data
  • gnss β€” pointer to GNSS device associated with this port πŸ›°οΈ
ngl, the {unnamed_union} line is sending me β€” the manpage literally just says "anonymous" and moves on. respect. ⭐

🌈 SEE ALSO 🌈

go read these next, bestie, they're in the same universe:


and that's the page! 🧚 source is ./drivers/net/wwan, dated October 2026, and it lives in the Kernel API Manual. mwah. periodt. πŸ’œ

πŸ“¦ where this page comes from