• Rob's side project: I recently started Gun-Forums.com and we currently have a $100 raffle - if you're into guns, join up and enter the raffle to win $100.00. Raffle Link

Accessing data created on startup from user space


New Member
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