Linux filesystem development
 help / color / mirror / Atom feed
* Problems with current file descriptor
@ 2005-10-26 15:43 Sergio Paracuellos
  2005-10-26 16:06 ` Jörn Engel
  2005-10-27  2:34 ` winter
  0 siblings, 2 replies; 7+ messages in thread
From: Sergio Paracuellos @ 2005-10-26 15:43 UTC (permalink / raw)
  To: LINUX-Fs-DEVEL

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-10-27  9:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-26 15:43 Problems with current file descriptor Sergio Paracuellos
2005-10-26 16:06 ` Jörn Engel
2005-10-27  2:34 ` winter
2005-10-27  7:20   ` Sergio Paracuellos
2005-10-27  8:30     ` winter
2005-10-27  9:06       ` Sergio Paracuellos
2005-10-27  9:26         ` Sergio Paracuellos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox