Lines Matching defs:buf
38 #define format_cgroup_path_pid(buf, path, pid) \
39 snprintf(buf, sizeof(buf), "%s%s%d%s", CGROUP_MOUNT_PATH, \
42 #define format_cgroup_path(buf, path) \
43 format_cgroup_path_pid(buf, path, getpid())
45 #define format_parent_cgroup_path(buf, path) \
46 format_cgroup_path_pid(buf, path, getppid())
48 #define format_classid_path(buf) \
49 snprintf(buf, sizeof(buf), "%s%s", NETCLS_MOUNT_PATH, \
122 const char *buf)
134 if (dprintf(fd, "%s", buf) <= 0) {
147 * @buf: Buffer to write to the file
154 const char *buf)
159 return __write_cgroup_file(cgroup_path, file, buf);
167 * @buf: Buffer to write to the file
175 const char *buf)
180 return __write_cgroup_file(cgroup_path, file, buf);