summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-12-17 17:57:22 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-12-19 20:30:53 +0100
commit1edfb2409d159f46af385ef36b2017a4102cf67f (patch)
tree6727e6ac1c9d274db2d6fdf07aef94283347688c /proc.h
parent8642322396987a586037942a2e47dee44bb1ed05 (diff)
flowtop: Move & refactor walk_processes() to proc.c
Add proc_find_by_inode() in proc.c which finds pid by inode & gets processe's command line and use it in the flowtop.c instead of walk_processes(). Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/proc.h b/proc.h
index 9220b2a..6e5f3ac 100644
--- a/proc.h
+++ b/proc.h
@@ -8,5 +8,6 @@ extern int set_proc_prio(int prio);
extern int set_sched_status(int policy, int priority);
extern ssize_t proc_get_cmdline(unsigned int pid, char *cmdline, size_t len);
extern int proc_exec(const char *proc, char *const argv[]);
+extern int proc_find_by_inode(ino_t ino, char *cmdline, size_t len, pid_t *pid);
#endif /* PROC_H */