nuttx icon indicating copy to clipboard operation
nuttx copied to clipboard

filep Reference count

Open Zhangshoukui opened this issue 1 year ago • 0 comments

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

Testing

Zhangshoukui avatar Aug 28 '24 08:08 Zhangshoukui