* Problems with current file descriptor
@ 2005-10-26 14:46 Sergio Paracuellos
0 siblings, 0 replies; only message in thread
From: Sergio Paracuellos @ 2005-10-26 14:46 UTC (permalink / raw)
To: KERNEL-NEWBIE, NUCLEO-DEVEL, LINUX-KERNEL
Hi all,
I have problems to know whats is the current file descriptor.
"task_struct" have a files_struct structure which contains all files for
a process in "fd". If I want to get the complete path for one of them,
How can I know what is the correct one in fd_array?
I suppose is something like:
path = d_path(task->files->fd[x]->f_dentry,
task->files->fd[x]->f_vfsmnt, buf, PAGE_SIZE);
But I don't know how to know this x for my correct file (for example the
last file I used).
Thanks in advance...
Cheers,
Sergio
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-26 14:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-26 14:46 Problems with current file descriptor Sergio Paracuellos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox