Logo Search packages:      
Sourcecode: linux version File versions

struct dentry* oprofilefs_mkdir ( struct super_block sb,
struct dentry *  root,
char const *  name 
) [read]

create a directory

Definition at line 223 of file oprofilefs.c.

{
      struct dentry * dentry;
      struct inode * inode;

      dentry = d_alloc_name(root, name);
      if (!dentry)
            return NULL;
      inode = oprofilefs_get_inode(sb, S_IFDIR | 0755);
      if (!inode) {
            dput(dentry);
            return NULL;
      }
      inode->i_op = &simple_dir_inode_operations;
      inode->i_fop = &simple_dir_operations;
      d_add(dentry, inode);
      return dentry;
}


Generated by  Doxygen 1.6.0   Back to index