.TH "pcihpfs_create_by_name" 9 "pcihpfs_create_by_name" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME pcihpfs_create_by_name \- create a file, given a name .SH SYNOPSIS .B "int" pcihpfs_create_by_name .BI "(const char *" name "," .BI "mode_t " mode "," .BI "struct dentry *" parent "," .BI "struct dentry **" dentry ");" .SH ARGUMENTS .IP "name" 12 name of file .IP "mode" 12 type of file .IP "parent" 12 dentry of directory to create it in .IP "dentry" 12 resulting dentry of file .SH "DESCRIPTION" There is a bit of overhead in creating a file - basically, we have to hash the name of the file, then look it up. This will prevent files of the same name. We then call the proper vfs_ function to take care of all the file creation details. This function handles both regular files and directories.