nuttx
nuttx copied to clipboard
filep Reference count
Summary
Increase the reference count of filep,fs_getfilep adds +1 to the reference count. After the call is complete, run the fs_putfilep command to release the reference count.When the reference count reaches 0, the file is actually closed.
Impact
This prevents the file from being closed while it is being read or written