Accessing data created on startup from user space

Circuits

New Member
Joined
Aug 29, 2018
Messages
15
Reaction score
3
Credits
13
Is there a way to access data that was set during startup from the user space? There is code in place for this embedded system that essentially probes a gpio pin to see if it's on the hardware. If it is on the hardware then it will set an int variable called value to 0. What I would like to do is import that int variable value into the user space, is that possible?

I thought about using gpio_export() and syfs to bring the gpio in but I feel like that should only be done if the gpio will need to be altered from the user space. All I want to do is know the value of the variable so I can make a few decisions in the code based on the value.
 

Members online


Latest posts

Top