debugfs_use_file_start — mark the beginning of file data access
|const struct dentry * dentry,|
|int * srcu_idx|
const struct dentry * dentry
the dentry object whose data is being accessed.
int * srcu_idx
a pointer to some memory to store a SRCU index in.
Up to a matching call to
successive call into the file removing functions
debugfs_remove_recursive will block. Since associated private
file data may only get freed after a successful return of any of
the removal functions, you may safely access it after a successful
debugfs_use_file_start without worrying about
EIO is returned, the file has already been removed and thus,
it is not safe to access any of its data. If, on the other hand,
it is allowed to access the file data, zero is returned.