lkml.org 
[lkml]   [2012]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Getting debugfs mountpoint?
From
The first instance of my code calls debugfs_create_file and stores a
pointer to the dentry of that directory. But when the second instance
calls debugfs_create_file, the function returns NULL because that
directory already exists, so it doesn't return the dentry that I need.

On Fri, Sep 14, 2012 at 7:11 PM, Al Viro <viro@zeniv.linux.org.uk> wrote:
> On Fri, Sep 14, 2012 at 07:07:43PM -0700, Jacob Sowles wrote:
>> Multiple instances of my code can be run simultaneously, and all
>> instances use the same debugfs directory, so I need the path to the
>> debugfs root directory so that I can use filp_open to get the dentry
>> for that directory.
>
> What's wrong with just storing a pointer to that dentry in a variable?
> And what do you want an opened file (of a directory, at that) on debugfs?


\
 
 \ /
  Last update: 2012-09-15 05:01    [W:0.037 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site