Add proc_find_by_inode(...) to find pid & it's command line by inode. The main motivation for this is to have process specific function located in proc.c and only call it from flowtop.c.
proc_find_by_inode(...) its just a refactored version of walk_processes(...) from the flowtop.c. Vadim Kochan (2): proc: Add function for find process by inode flowtop: Replace walk_processes(...) by proc_find_by_inode(...) flowtop.c | 76 ++++++++------------------------------------------------------- proc.c | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ proc.h | 1 + 3 files changed, 84 insertions(+), 67 deletions(-) -- 2.10.2 -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to netsniff-ng+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.