Searched defs:filename (Results 1 - 5 of 5) sorted by relevance

/lxc/src/lxc/cgroups/
H A Dcgroup.c186 int lxc_cgroup_set(const char *filename, const char *value, const char *name, const char *lxcpath) argument
189 return ops->set(filename, value, name, lxcpath);
193 int lxc_cgroup_get(const char *filename, char *value, size_t len, const char *name, const char *lxcpath) argument
196 return ops->get(filename, value, len, name, lxcpath);
H A Dcgfs.c1353 static int lxc_cgroup_set_data(const char *filename, const char *value, struct cgfs_data *d) argument
1358 subsystem = alloca(strlen(filename) + 1);
1359 strcpy(subsystem, filename);
1366 ret = do_cgroup_set(path, filename, value);
1374 static int lxc_cgroupfs_set(const char *filename, const char *value, const char *name, const char *lxcpath) argument
1379 subsystem = alloca(strlen(filename) + 1);
1380 strcpy(subsystem, filename);
1386 ret = do_cgroup_set(path, filename, value);
1392 static int lxc_cgroupfs_get(const char *filename, char *value, size_t len, const char *name, const char *lxcpath) argument
1397 subsystem = alloca(strlen(filename)
1969 char *filename; local
1991 char *filename; local
[all...]
H A Dcgfsng.c1814 const char *filename)
1822 return must_make_path(inpath, filename, NULL);
1823 return must_make_path(h->mountpoint, inpath, filename, NULL);
1861 static int cgfsng_get(const char *filename, char *value, size_t len, const char *name, const char *lxcpath) argument
1867 subsystem = alloca(strlen(filename) + 1);
1868 strcpy(subsystem, filename);
1878 char *fullpath = build_full_cgpath_from_monitorpath(h, path, filename);
1893 static int cgfsng_set(const char *filename, const char *value, const char *name, const char *lxcpath) argument
1899 subsystem = alloca(strlen(filename) + 1);
1900 strcpy(subsystem, filename);
1812 build_full_cgpath_from_monitorpath(struct hierarchy *h, const char *inpath, const char *filename) argument
1924 lxc_cgroup_set_data(const char *filename, const char *value, struct cgfsng_handler_data *d) argument
[all...]
H A Dcgmanager.c856 static void do_cgm_get(const char *name, const char *lxcpath, const char *filename, int outp, bool sendvalue) argument
863 controller = alloca(strlen(filename)+1);
864 strcpy(controller, filename);
908 if (cgmanager_get_value_sync(NULL, cgroup_manager, controller, cglast+1, filename, &result) != 0) {
937 static int cgm_get(const char *filename, char *value, size_t len, const char *name, const char *lxcpath) argument
950 do_cgm_get(name, lxcpath, filename, p[1], len && value);
996 static void do_cgm_set(const char *name, const char *lxcpath, const char *filename, const char *value, int outp) argument
1003 controller = alloca(strlen(filename)+1);
1004 strcpy(controller, filename);
1048 if (cgmanager_set_value_sync(NULL, cgroup_manager, controller, cglast+1, filename, valu
1073 cgm_set(const char *filename, const char *value, const char *name, const char *lxcpath) argument
[all...]
/lxc/src/lxc/
H A Dutils.c934 int lxc_write_to_file(const char *filename, const void* buf, size_t count, bool add_newline) argument
939 fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT | O_CLOEXEC, 0666);
962 int lxc_read_from_file(const char *filename, void* buf, size_t count) argument
967 fd = open(filename, O_RDONLY | O_CLOEXEC);
984 ERROR("read %s: %s", filename, strerror(errno));

Completed in 30 milliseconds