STRUCT STP_POLICY_ID(9)
β¨ 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 realid[]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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms