sockets - tm->when in/proc/net/tcp 的格式是什么?

标签 sockets linux-kernel proc

我需要知道 tm->when 是什么意思,但是 proc(5) 没有提到任何有用的东西,

那么,它存储的是socket的创建时间吗?每次我查看文件时,数字似乎都在减少。

root@ubuntu-vm:~# cat /proc/net/tcp
  sl  local_address rem_address   st tx_queue rx_queue tr tm->when retrnsmt   uid  timeout inode                                                     
   0: 00000000:0CEA 00000000:0000 0A 00000000:00000000 00:00000000 00000000   104        0 17410 1 dddb6d00 100 0 0 10 -1                            
   1: 00000000:0016 00000000:0000 0A 00000000:00000000 00:00000000 00000000     0        0 7959 1 dddb4500 100 0 0 10 -1                             
   2: B238A8C0:0016 0138A8C0:9C96 01 00000000:00000000 02:00061444 00000000     0        0 8243 4 daa3c000 20 4 27 10 16                             
   3: B238A8C0:0CEA 0138A8C0:8753 01 00000000:00000000 02:0009C787 00000000   104        0 19467 2 daa3e300 20 4 18 10 -1

最佳答案

来自 Exploring the /proc/net/ Directory

The tr field indicates whether a timer is active for this socket. A value of zero indicates the timer is not active. The tm->when field indicates the time remaining (in jiffies) before timeout occurs.

关于sockets - tm->when in/proc/net/tcp 的格式是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19898180/

相关文章:

c# - 尝试写入 Networkstream 时流不可写

java - 在同一端口轮询服务器 - 线程和 Java

linux - 在哪里可以找到旧版 Linux 内核 (2.6.x) 的特定文件?

linux-kernel - write_cr0(read_cr0() | 0x10000) 的作用是什么?

linux - 如何让 linux 内核导出/proc/[pid]/io?

使用C计算Linux多核机器上的CPU使用率

c - 绑定(bind)地址已使用 C udp/tcp

c# - c#中的文件传输问题

linux - 来自通用时钟框架的不同时钟速率?

ruby - 无需 Eval 即可更改 block 绑定(bind)?