cregit-Linux how code gets into the kernel

Release 4.14 samples/bpf/cgroup_helpers.h

Directory: samples/bpf
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __CGROUP_HELPERS_H

#define __CGROUP_HELPERS_H
#include <errno.h>
#include <string.h>


#define clean_errno() (errno == 0 ? "None" : strerror(errno))

#define log_err(MSG, ...) fprintf(stderr, "(%s:%d: errno: %s) " MSG "\n", \
        __FILE__, __LINE__, clean_errno(), ##__VA_ARGS__)


int create_and_get_cgroup(char *path);
int join_cgroup(char *path);
int setup_cgroup_environment(void);
void cleanup_cgroup_environment(void);

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Sargun Dhillon5698.25%150.00%
Greg Kroah-Hartman11.75%150.00%
Total57100.00%2100.00%
Directory: samples/bpf
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.