eminence / procfs

Rust library for reading the Linux procfs filesystem
Other
367 stars 106 forks source link

read dev and tcp files with specific pid # #218

Closed shippomx closed 1 year ago

shippomx commented 1 year ago

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

eminence commented 1 year ago

hi @shippomx -- I just merged #226, which supersedes your pull request, so I'm going to close this. Thank you though for your PR.