I have to write some kata-containers metrics interface, which will use the specific /proc/{pid}/net/tcp file. And some one has mentioned this problem one yeas ago. https://github.com/eminence/procfs/issues/126.
for some mistake, i had add libc package to reference pid_t type, but this pr i removed it, and test this function in examples/interface_stats.rs
I have to write some kata-containers metrics interface, which will use the specific /proc/{pid}/net/tcp file. And some one has mentioned this problem one yeas ago. https://github.com/eminence/procfs/issues/126.
for some mistake, i had add
libc
package to referencepid_t
type, but this pr i removed it, and test this function inexamples/interface_stats.rs