STRUCT WWAN_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct wwan_ops(9) β€” the Kernel API Manual, but make it fashion

okay bestie, so this page is literally all about struct wwan_ops β€” the WWAN device ops πŸ¦‹. yes, ops as in operations, as in the little function-pointer squad that tells the kernel how to handle your WWAN netdev. it's giving "backstage pass to the whole device lifecycle" and honestly we're obsessed ✨


🌸 SYNOPSIS 🌸

here's the whole struct, copied exactly, no cap, don't come for me:

struct wwan_ops {
    unsigned int priv_size;
    void (*setup)(struct net_device *dev);
    int (*newlink)(void *ctxt, struct net_device *dev, u32 if_id, struct
netlink_ext_ack *extack);
    void (*dellink)(void *ctxt, struct net_device *dev, struct list_head
*head);
 };

like… four members. short and iconic. main character energy fr fr πŸ’œ


πŸŽ€ Members πŸŽ€

  • priv_size β€” the size of the private netdev data area πŸ’–. yes it's just a number, yes it matters, it's how much room your private stuff gets to live in.
  • setup β€” set up a new netdev ✨. this is where the new netdev gets its lil makeover.
  • newlink β€” register the new netdev 🫢. takes void *ctxt, struct net_device *dev, u32 if_id, and a struct netlink_ext_ack *extack. it's the "welcome to the family" moment.
  • dellink β€” remove the given netdev πŸ’€. takes void *ctxt, struct net_device *dev, and a struct list_head *head. sad but necessary, we don't gatekeep deletions here.

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, iykyk:

like, go read them, they're all slay in their own way 🌈


anyway, that's the whole vibe β€” this came out of ./include/linux and it's dated October 2026, so mark your calendars bestie πŸ—“οΈπŸ’–. slay, stay hydrated, and remember: the kernel loves you. periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from