Lines Matching defs:file
121 static int __write_cgroup_file(const char *cgroup_path, const char *file,
127 snprintf(file_path, sizeof(file_path), "%s/%s", cgroup_path, file);
144 * write_cgroup_file() - Write to a cgroup file
146 * @file: The name of the file in cgroupfs to write to
147 * @buf: Buffer to write to the file
149 * Write to a file in the given cgroup's directory.
153 int write_cgroup_file(const char *relative_path, const char *file,
159 return __write_cgroup_file(cgroup_path, file, buf);
163 * write_cgroup_file_parent() - Write to a cgroup file in the parent process
166 * @file: The name of the file in cgroupfs to write to
167 * @buf: Buffer to write to the file
169 * Write to a file in the given cgroup's directory under the parent process
174 int write_cgroup_file_parent(const char *relative_path, const char *file,
180 return __write_cgroup_file(cgroup_path, file, buf);
333 * On success, it returns the file descriptor. On failure, it returns -1.
372 * file descriptor. It is idempotent.
374 * On success, it returns the file descriptor. On failure it returns -1.
533 * file in order to later on trigger socket tagging.