UI_GET_SYSNAME(9)
β¨ UI_GET_SYSNAME π
okay so this one lives in the Kernel API Manual (yes bestie, the whole man page collection, we're in the big leagues now π) and it's about finding out what sysfs decided to call your brand-new uinput device. let's get into it π¦
πΈ NAME πΈ
UI_GET_SYSNAME β get the sysfs name of the created uinput device. that's it, that's the whole vibe. it tells you what your device got named π
β SYNOPSIS β
UI_GET_SYSNAME (len );
literally the entire call, no cap β¨
π ARGUMENTS π
lenβ okay so the source literally just says-- undescribed --for this one π not me being lazy, that's genuinely all the documentation gives us. so: it's the length, and that's all we know for sure π
π₯ DESCRIPTION π₯
so you made a virtual input device, iconic, and now you wanna know what sysfs is calling it? this is the function that returns the sysfs name of the created virtual input device. slay.
the complete sysfs path is then:
/sys/devices/virtual/input/--NAME--
where that --NAME-- is the name you got back π«Ά and usually, it's in the form "inputN" β like input0, input1, whatever number the kernel felt like handing out that day. iykyk π«
no cap: "usually" is doing a lot of work in that sentence β the kernel is telling you it's typically inputN, not swearing a blood oath that it always will be π
π SEE ALSO π
- kernel file
./include/uapi/linux/uinput.hβ the header where all the uinput goodies live π UI_DEV_SETUP(9)UI_ABS_SETUP(9)UI_GET_VERSION(9)
go read those next bestie, they're all part of the same lil uinput friend group π―ββοΈ
and that's the whole page!! π this one's from the source tree at ./include/uapi/linux, dated October 2026, and it was rendered in the Kernel API Manual β go off, sysfs namer π§β¨π
π¦ 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