Results 1 to 8 of 8
Hi,
Can anybody tell me how can I traverse a directory from Kernel space?
I'm using the path_lookup function. However, through the inodes I get with this functions I can ...
- 04-24-2010 #1Just Joined!
- Join Date
- Apr 2010
- Posts
- 1
File System
Hi,
Can anybody tell me how can I traverse a directory from Kernel space?
I'm using the path_lookup function. However, through the inodes I get with this functions I can only access those files that have been displayed at some point by another process (doing ls from the terminal for example)
Any idea ??
Thanks.
- 04-24-2010 #2
Hi malu_cazan,
Welcome!
I'm not sure of this but if you want, you can give it a try.
I use "mc" midnight commander to traverse directories and copy or move files from one directory to another.nujinini
Linux User #489667
- 04-27-2010 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,975
Nujinini, he is trying to do the traverse from kernel space - from within a kernel module I presume. MC won't help with that.
Malu, can you please be more specific what exactly it is you are trying to do? That will help determine what functions you should be using. Also, you might want to move this thread to "The Linux Kernel" forum for better help on kernel programming issues.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-27-2010 #4My guess, I think the function which you are using returns only cached inodesHowever, through the inodes I get with this functions I can only access those files that have been displayed at some point by another process (doing ls from the terminal for example)
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 04-27-2010 #5
- 06-03-2010 #6Just Joined!
- Join Date
- Jun 2010
- Posts
- 6
Does anyone have an answer to his question? I have a similar problem and would be interested in solution.
- 06-03-2010 #7
- 06-03-2010 #8Just Joined!
- Join Date
- Jun 2010
- Posts
- 6
Thank you for the quick response. I did as you suggested and created a thread under the "Linux Kernel" forum for my question. The thread is available at the following forum path (Note, it wouldn't let me directly link to the thread as a new user to the forums...sorry):
Linux Forums > GNU Linux Zone > The Linux Kernel > Traversing/Counting contents of /proc/[pid]/fd
The end of the URL looks like:
.../linux-kernel/165102-traversing-counting-contents-proc-pid-fd-directories.html
Thank you.


Reply With Quote
