GPIOSIM(4)
β¨ NAME β¨
okay so bestie, welcome to GPIOSIM(4) β that's the Kernel Interfaces Manual page for the General Purpose Input/Output Simulator. no cap, it's literally a simulator for GPIO, and it's here to help. π¦
β¨ SYNOPSIS β¨
pseudo-device gpiosim
β¨ DESCRIPTION β¨
The gpiosim pseudo-device is out here simulating a 64-bit wide gpio(4) device. iconic behavior, honestly. π
You can manipulate the simulated device's state through the sysctl(8) interface. For this purpose, access the "hw.gpiosim<N>.value" sysctl(8) variable, where <N> denotes the number of the gpiosim instance. yes bestie, that <N> is the instance number β keep it in mind. π
- both edge and level interrupts are simulated β both, periodt. β‘
- the
"hw.gpiosim<N>.ms"sysctl(8)variable will change the amount of time betweencallout(9)ticks for simulated level interrupts. that's the timing knob for simulated level interrupts, iykyk. β±οΈ
β¨ SEE ALSO β¨
β¨ AUTHORS β¨
- The
gpiosimdriver was written by Marc Balmer<marc@msys.ch>. π - Simulated interrupts added by Brad Spencer
<brad@anduin.eldar.org>. π
okay that's the whole page, bestie β source/version: Debian, date: November 8, 2013. bye and slay responsibly πβ¨
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2009, 2013 Marc Balmer <marc@msys.ch>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms