STRUCT GSM_CONFIG(9)
π NAME π
struct gsm_config β the basic configuration parameters for n_gsm, bestie. that's it, that's the whole vibe β¨
so you know how this page is from the Kernel API Manual? yeah. we're in kernel land now and we're gonna have fun with it π
πΈ SYNOPSIS πΈ
struct gsm_config {
unsigned int adaption;
unsigned int encapsulation;
unsigned int initiator;
unsigned int t1;
unsigned int t2;
unsigned int t3;
unsigned int n2;
unsigned int mru;
unsigned int mtu;
unsigned int k;
unsigned int i;
unsigned int unused[8];
};
likeβ¦ look at her. twelve fields. eight of them are just vibes (unused, we'll get to you). iconic honestly π
π¦ Members π¦
okay so let's go field by field, no skipping, we don't do that here π
adaptionβ the convergence layer type, periodt.encapsulationβ the framing. it's0= basic option,1= advanced option. pick your fighter π₯initiatorβ initiator or responder. are you the one starting things or the one responding? main character or supporting cast, no wrong answer π«t1β Acknowledgment timer β°t2β Response timer for the multiplexer control channel β°t3β Response timer for the wake-up procedure β° (yes girl, wake up π)n2β Maximum number of retransmissions πmruβ Maximum incoming frame payload size π₯mtuβ Maximum outgoing frame payload size π€kβ Window size πͺiβ Frame type, and it's1= UIH,2= UI. just those two, don't get creative πunusedβ Can not be used. that's it. that's the description. hands off theunusedarray bestie π (it's literally eightunsigned ints of do not touch)
β¨ Description β¨
so this structure is used in combination with GSMIOC_GETCONF and GSMIOC_SETCONF to retrieve and set the basic parameters of an n_gsm ldisc. like, that's the whole job π«Ά
and if you want to configure the extended ldisc parameters? that's not this girl. that's struct gsm_config_ext, she has her own page πββοΈ
π¨ important lore: all timers are in units of 1/100th of a second. so like, do the math. t1 of 100 = one second. ngl this is the detail everyone forgets and it's giving chaos π
π SEE ALSO π
- Kernel file
./include/uapi/linux/gsmmux.hβ also:struct gsm_netconfig(9),struct gsm_config_ext(9),struct gsm_dlci_config(9)π¦ go read those too, i'll wait
and that's the page!! π source lives at ./include/uapi/linux, dated October 2026, and it's struct gsm_config(9) in the Kernel API Manual β slay, go configure ur ldisc, mwah ππ
π¦ 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