STRUCT DTV_PROPERTY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct dtv_property(9) ✨

okay so this is from the Kernel API Manual, bestie β€” it's literally the little container that holds one frontend command and the value that goes with it. one command. one value. main character energy but make it a struct πŸŽ€


🌸 NAME 🌸

struct dtv_property β€” stores one of the frontend command and its value. that's it, that's the whole job, and she does it flawlessly πŸ’…


✨ SYNOPSIS ✨

struct dtv_property {
    __u32 cmd;
    __u32 reserved[3];
    union {
      __u32 data;
      struct dtv_fe_stats st;
      struct {
        __u8 data[32];
        __u32 len;
        __u32 reserved1[3];
        void *reserved2;
      } buffer;
    } u;
    int result;
 };

no cap, that's the whole shape of her 🫢


πŸŽ€ Members πŸŽ€

okay bestie, let's go through every single member because we do not skip ✨

  • cmd β€” the Digital TV command. this is the "what are we even doing here" field πŸ’«
  • reserved β€” not used. literally just sitting there, holding space, being an icon πŸͺ‘βœ¨
  • u β€” the union that carries the values for the command. whatever cmd says, u is the one holding the actual payload 🫴
  • u.data β€” an unsigned 32 bits integer with the command value. small, mighty, to the point πŸ”₯
  • u.st β€” a struct dtv_fe_stats array of statistics. stats girlies rise πŸ™Œ
  • u.buffer β€” a struct for storing bigger properties. heads up though: currently unused πŸ’€ she's built but she's not booked.
  • u.buffer.data β€” an unsigned 32-bits array. the actual bytes live here 🌈
  • u.buffer.len β€” number of elements of the buffer. she keeps count, she's organized πŸ’…
  • u.buffer.reserved1 β€” reserved. again. respectfully, not used πŸ™ˆ
  • u.buffer.reserved2 β€” reserved. also not used. matching set with reserved1, it's giving coordinated πŸŽ€
  • result β€” currently unused. manifesting a glow-up for her someday 😭

πŸ’– SEE ALSO πŸ’–

the whole friend group, in the kernel file ./include/uapi/linux/dvb/frontend.h:

enum fe_caps(9), struct dvb_frontend_info(9), struct dvb_diseqc_master_cmd(9), struct dvb_diseqc_slave_reply(9), enum fe_sec_voltage(9), enum fe_sec_tone_mode(9), enum fe_sec_mini_cmd(9), enum fe_status(9), enum fe_spectral_inversion(9), enum fe_code_rate(9), enum fe_modulation(9), enum fe_transmit_mode(9), enum fe_guard_interval(9), enum fe_hierarchy(9), enum fe_interleaving(9), enum fe_pilot(9), enum fe_rolloff(9), enum fe_delivery_system(9), enum atscmh_sccc_block_mode(9), enum atscmh_sccc_code_mode(9), enum atscmh_rs_frame_ensemble(9), enum atscmh_rs_frame_mode(9), enum atscmh_rs_code_mode(9), enum fecap_scale_params(9), struct dtv_stats(9), struct dtv_fe_stats(9), struct dtv_properties(9)

like, that's the entire group chat and every one of them is invited πŸ¦‹


and that's the page, bestie πŸ’œ sourced straight from ./include/uapi/linux/dvb, dated October 2026 β€” slay, periodt, go read the headers πŸ“šβœ¨

πŸ“¦ where this page comes from