STRUCT MTK_PIN_SPEC_PUPD_SET_SAMEREG(9)
π NAME π
struct mtk_pin_spec_pupd_set_samereg β okay so this is a Kernel API Manual situation (section 9, iykyk), and this struct is literally the blueprint for special pins' pull up/down settings that all live in the same register π
β¨ SYNOPSIS β¨
struct mtk_pin_spec_pupd_set_samereg {
unsigned short pin;
unsigned short offset;
unsigned char pupd_bit;
unsigned char r1_bit;
unsigned char r0_bit;
};
That's the whole glow-up, bestie β five fields, zero drama π¦
πΈ Members πΈ
pinβ the pin number, periodt. It's giving "which pin are we even talking about" energy πoffsetβ the offset of the special pull up/down setting register. Lowkey the map coordinate to the register you actually care about πΊοΈpupd_bitβ the pull up/down bit in this register. This is the main character bit, ngl β¨r1_bitβ ther1bit of the pull resistor π₯r0_bitβ ther0bit of the pull resistor. r1 and r0 are literally a duo, they come as a set π«Ά
π Description π
- for special pins' pull up/down setting which resides in same register π
So yeah β when a special pin's pull up/down config is chillin' in the same register as everything else, this struct is the one holding all the receipts: which pin, which register offset, and which bits do the pulling πβ¨
π SEE ALSO π
- Kernel file
./drivers/pinctrl/mediatek/pinctrl-mtk-common.h struct mtk_drv_group_desc(9)struct mtk_pin_drv_grp(9)struct mtk_pinctrl_devdata(9)
Go read the whole squad, fr fr ππ
okay that's the whole page bestie, mwah π β this lil icon of a manpage comes to you from ./drivers/pinctrl/mediatek, dated October 2026, and it's still answering to the name struct mtk_pin_spec_pupd_set_samereg(9) βπ
π¦ 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