UI_GET_SYSNAME(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ’œ

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