@@ -336,6 +336,7 @@ static void update_inode_attr(struct dentry *dentry, struct inode *inode,
336
336
337
337
/**
338
338
* lookup_file - look up a file in the tracefs filesystem
339
+ * @parent_ei: Pointer to the eventfs_inode that represents parent of the file
339
340
* @dentry: the dentry to look up
340
341
* @mode: the permission that the file should have.
341
342
* @attr: saved attributes changed by user
@@ -389,6 +390,7 @@ static struct dentry *lookup_file(struct eventfs_inode *parent_ei,
389
390
/**
390
391
* lookup_dir_entry - look up a dir in the tracefs filesystem
391
392
* @dentry: the directory to look up
393
+ * @pei: Pointer to the parent eventfs_inode if available
392
394
* @ei: the eventfs_inode that represents the directory to create
393
395
*
394
396
* This function will look up a dentry for a directory represented by
@@ -478,16 +480,20 @@ void eventfs_d_release(struct dentry *dentry)
478
480
479
481
/**
480
482
* lookup_file_dentry - create a dentry for a file of an eventfs_inode
483
+ * @dentry: The parent dentry under which the new file's dentry will be created
481
484
* @ei: the eventfs_inode that the file will be created under
482
485
* @idx: the index into the entry_attrs[] of the @ei
483
- * @parent: The parent dentry of the created file.
484
- * @name: The name of the file to create
485
486
* @mode: The mode of the file.
486
487
* @data: The data to use to set the inode of the file with on open()
487
488
* @fops: The fops of the file to be created.
488
489
*
489
- * Create a dentry for a file of an eventfs_inode @ei and place it into the
490
- * address located at @e_dentry.
490
+ * This function creates a dentry for a file associated with an
491
+ * eventfs_inode @ei. It uses the entry attributes specified by @idx,
492
+ * if available. The file will have the specified @mode and its inode will be
493
+ * set up with @data upon open. The file operations will be set to @fops.
494
+ *
495
+ * Return: Returns a pointer to the newly created file's dentry or an error
496
+ * pointer.
491
497
*/
492
498
static struct dentry *
493
499
lookup_file_dentry (struct dentry * dentry ,
0 commit comments