[lkml]   [2006]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Question regarding /proc/<pid>/fd and pipes
    >> I know that the symlinks in the /proc/<pid>/fd directory point to
    >> bogus filenames for pipes (i.e. 'pipe:[64682]') and am wondering if
    >> every process that reads and writes from that pipe will share the same
    >> bogus symlink name.

    It is not really bogus. And it is not really real at the same time.
    This is how it works AFAIU: pipes get created in pipefs (cat
    /proc/filesystems) (as do sockets in sockfs), and their dentry IS named
    "pipe:[46682]". You just can't see it because 1. you are prevented from
    mounting pipefs, 2. there are no readdir/etc. functions for pipefs
    implemented ATM.

    >> In essence, I'm wondering if there's any way to list all of the pid's
    >> of processes using an anonomous pipe.
    Hm. Do you mean list "all pids of procs using an anynymous pipe" or
    "list all pids [...]" using an anonymous pipe... :)

    AFAICS, the first is not possible; the latter is (a fork-and-exec
    thing) is something different.

    Jan Engelhardt
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-02-09 18:24    [W:0.031 / U:18.220 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site