Start a new topic

Is close command required in nbus.c example in TS-7600 User Manual?


I am using GPIO inputs on a TS-7600. In the user manual there is a link to  nbus.c (

Line 248 has the open command:

devmem = open("/dev/mem", O_RDWR|O_SYNC);

I can't find a corresponding "close" command. Is it automatically taken care of when devmem goes out of scope? Or should there be a "close" command somewhere?

Thank you.

Login or Signup to post a comment