/lxc/src/lxc/ |
H A D | lxc.h | 101 * @filename : the cgroup attribute filename 107 extern int lxc_cgroup_set(const char *filename, const char *value, const char *name, const char *lxcpath); 112 * @filename : the cgroup attribute filename 119 extern int lxc_cgroup_get(const char *filename, char *value, size_t len, const char *name, const char *lxcpath);
|
H A D | utils.h | 248 extern int lxc_write_to_file(const char *filename, const void* buf, size_t count, bool add_newline); 249 extern int lxc_read_from_file(const char *filename, void* buf, size_t count);
|
H A D | utils.c | 934 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));
|
/lxc/src/lxc/cgroups/ |
H A D | cgroup.c | 186 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 D | cgroup.h | 53 int (*set)(const char *filename, const char *value, const char *name, const char *lxcpath); 54 int (*get)(const char *filename, char *value, size_t len, const char *name, const char *lxcpath);
|
H A D | cgfsng.c | 1814 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 D | cgmanager.c | 856 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...] |
H A D | cgfs.c | 1353 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...] |
/lxc/templates/ |
H A D | lxc-ubuntu-cloud.in | 307 filename=`basename $url2` 311 rm -f $filename 319 rm -f $filename 323 if [ ! -f $filename ]; then 334 if [ "${filename##*.}" = "squashfs" ]; then 335 unsquashfs -n -f -d "$rootfs" "$cache/$filename" 338 tar --anchored --exclude="dev/*" --numeric-owner -xpf "$cache/$filename" 341 tar --numeric-owner -xpf "$cache/$filename"
|