STRUCT STP_POLICY_ID(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this is struct stp_policy_id(9) from the Kernel API Manual β€” it's literally the identification for the STP policy πŸ’…πŸͺͺ

struct stp_policy_id β€” identification for the STP policy πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

here's the struct, no cap, copy it exactly and don't freestyle the fields:

       struct stp_policy_id {
           __u32 size;
           __u16 master;
           __u16 channel;
           __u16 width;
           __u16 __reserved_0;
           __u32 __reserved_1;
           char id[];
        };

the struct is also carrying __reserved_0 and __reserved_1, so don't pretend they're not there πŸ™ˆ

πŸŽ€ Members πŸŽ€

  • size β€” size of the structure including real id[] length πŸ“
  • master β€” assigned master πŸ‘‘
  • channel β€” first assigned channel 🌈
  • width β€” number of requested channels πŸ“
  • id β€” identification string 🏷️

πŸ’… Description πŸ’…

okay so the user has to do the math: calculate the total size of the structure and put it into the size field. then fill out the id and the desired width ✨

in return, the kernel fills out master, channel, and width 🫢πŸ”₯

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/uapi/linux/stm.h πŸ“

and that's the whole vibe πŸ’– source/version: ./include/uapi/linux; date: October 2026; manual: struct stp_policy_id(9) β€” bye bestie, stay slay 🫢✨

πŸ“¦ where this page comes from