mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 14:05:22 +08:00
d5e6ee0dac
This patch prepares infrastructure for matching sockets by cgroups. Two helper functions are added for transformation between cgroup v2 ID and pathname. Cgroup v2 cache is implemented as hash table indexed by ID. This cache is needed for faster lookups of socket cgroup. v2: - style fixes (David Ahern) Signed-off-by: Dmitry Yakunin <zeil@yandex-team.ru> Signed-off-by: David Ahern <dsahern@gmail.com>
7 lines
107 B
C
7 lines
107 B
C
#ifndef __CG_MAP_H__
|
|
#define __CG_MAP_H__
|
|
|
|
const char *cg_id_to_path(__u64 id);
|
|
|
|
#endif /* __CG_MAP_H__ */
|