STRUCT DVB_NET(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct dvb_net(9) ✨

okay bestie, so this is a page from the Kernel API Manual and it's literally all about struct dvb_net β€” the little struct that describes a DVB network interface. no cap, that's the whole vibe. πŸŽ€


🌸 NAME 🌸

struct dvb_net β€” describes a DVB network interface


✨ SYNOPSIS ✨

struct dvb_net {
    struct dvb_device *dvbdev;
    struct net_device *device[DVB_NET_DEVICES_MAX];
    int state[DVB_NET_DEVICES_MAX];
    unsigned int exit:1;
    struct dmx_demux *demux;
    struct mutex ioctl_mutex;
    struct mutex remove_mutex;
 };

like, that's the whole struct, copy it exactly bestie, don't be weird about it 🫢


πŸ¦‹ Members πŸ¦‹

  • dvbdev β€” pointer to struct dvb_device. a little pointer, doing its thing.
  • device β€” array of pointers to struct net_device. it's giving "multiple net devices, one array" energy.
  • state β€” array of integers, one for each net device. any value that isn't zero means the interface is in usage. iykyk πŸ‘€
  • exit β€” flag to indicate when the device is being removed. bye bestie πŸ’€
  • demux β€” pointer to struct dmx_demux.
  • ioctl_mutex β€” protects access to this struct. she's a bodyguard, periodt.
  • remove_mutex β€” mutex that avoids a race condition between a callback called when the hardware is disconnected and the file_operations of dvb_net. literally keeping the peace πŸ”₯

🌈 Description 🌈

Currently, the core supports up to DVB_NET_DEVICES_MAX (10) network devices. ten! that's the limit, don't come for her πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘


✨ lowkey obsessed with how tidy this page is. no bugs listed, no drama, just struct facts. slay.

okay that's the whole page, bestie β€” this one came from ./include/media, October 2026 edition, and honestly? she ate. πŸ“πŸ’–πŸ§š

πŸ“¦ where this page comes from