Re: [PATCH iproute2] lib: move get_task_name() from rdma

2021-04-19 Thread Leon Romanovsky
On Mon, Apr 19, 2021 at 03:34:58PM +0200, Andrea Claudi wrote: > The function get_task_name() is used to get the name of a process from > its pid, and its implementation is similar to ip/iptuntap.c:pid_name(). > > Move it to lib/fs.c to use a single implementation and make it easily > reusable. >

[PATCH iproute2] lib: move get_task_name() from rdma

2021-04-19 Thread Andrea Claudi
The function get_task_name() is used to get the name of a process from its pid, and its implementation is similar to ip/iptuntap.c:pid_name(). Move it to lib/fs.c to use a single implementation and make it easily reusable. Signed-off-by: Andrea Claudi --- include/utils.h | 1 + ip/iptuntap.c