Logo Search packages:      
Sourcecode: linux version File versions

int oprofilefs_create_ulong ( struct super_block sb,
struct dentry *  root,
char const *  name,
ulong *  val 

Create a file for read/write access to an unsigned long.

Definition at line 153 of file oprofilefs.c.

      struct dentry *d = __oprofilefs_create_file(sb, root, name,
                                         &ulong_fops, 0644);
      if (!d)
            return -EFAULT;

      d->d_inode->i_private = val;
      return 0;

Generated by  Doxygen 1.6.0   Back to index