GPIOSIM(4)

πŸ“¦ version 11.0, in nixpkgs unstable

✨ 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 between callout(9) ticks for simulated level interrupts. that's the timing knob for simulated level interrupts, iykyk. ⏱️

✨ SEE ALSO ✨

✨ AUTHORS ✨

  • The gpiosim driver 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