Tagged Questions
1
vote
1answer
33 views
How to find speed of wlan interface?
I'm trying to find speed of network interface using file-descriptor. It's easy to do it for ethX, just calling cat /sys/class/net/eth0/speed. Unfortunately this method doesn't work with wireless ...
3
votes
2answers
57 views
Cross-process dup on Linux
I'd like to dup a file descriptor running in an unrelated process on Linux. I know about sendmsg(2) and SCM_RIGHTS (e.g. ...
3
votes
1answer
154 views
Timestamp of socket in /proc/<pid>/fd
If I list /proc/<pid>/fd I see a number of entries for sockets. These entries have timestamps. At first I thought they were when the socket was created. But it doesn't always appear to be the ...
2
votes
1answer
76 views
Max Open Files, clarification needed
On my machine,
ulimit -n returns 2560
Given that -n returns
The maximum number of open file descriptors.
Does it mean that system won't allow more then 2560 open files to be out there at any ...
7
votes
2answers
893 views
What happens when I close() a file descriptor?
I am trying to get the whole picture with file descriptors. Say I have process1 which initially has these file descriptors:
_process1_
| |
| 0 stdin |
| 1 stdout |
| 2 stderr |
...
5
votes
0answers
88 views
How can different file descriptors point to the same file in open file table? [duplicate]
Possible Duplicate:
How can same fd in different processes point to the same file?
I have a hard time grasping the two ideas of File Descriptor Table and Open File Table.
Open File Table ...
5
votes
3answers
1k views
Understanding /dev and its subdirs and files
$ ls -l /dev/stdin /dev/fd/0
lrwx------ 1 tim tim 64 2011-08-07 09:53 /dev/fd/0 -> /dev/pts/2
lrwxrwxrwx 1 root root 15 2011-08-06 08:14 /dev/stdin -> /proc/self/fd/0
$ ls -l /dev/pts/2 ...