Searched defs:data (Results 1 - 25 of 28) sorted by relevance

12

/lxc/src/lxc/bdev/
H A Dlxcrsync.c68 int rsync_delta(struct rsync_data_char *data) argument
80 if (do_rsync(data->src, data->dest) < 0) {
81 ERROR("rsyncing %s to %s", data->src, data->dest);
88 int rsync_delta_wrapper(void *data) argument
90 struct rsync_data_char *arg = data;
94 int rsync_rootfs(struct rsync_data *data) argument
96 struct bdev *orig = data->orig,
97 *new = data
137 rsync_rootfs_wrapper(void *data) argument
[all...]
H A Dlxcnbd.c172 struct nbd_attach_data *data = d; local
184 nbd = data->nbd;
185 path = data->path;
239 struct nbd_attach_data data; local
241 data.nbd = nbd;
242 data.path = path;
244 pid = lxc_clone(do_attach_nbd, &data, CLONE_NEWPID);
H A Dlxcbtrfs.c344 static int btrfs_snapshot_wrapper(void *data) argument
346 struct rsync_data_char *arg = data;
H A Dbdev.c208 static int find_fstype_cb(char *buffer, void *data);
308 struct rsync_data data; local
437 data.orig = orig;
438 data.new = new;
440 ret = userns_exec_1(c0->lxc_conf, rsync_rootfs_wrapper, &data);
442 ret = rsync_rootfs(&data);
513 int bdev_destroy_wrapper(void *data) argument
515 struct lxc_conf *conf = data;
881 static int find_fstype_cb(char* buffer, void *data) argument
887 } *cbarg = data;
[all...]
H A Dlxcoverlay.c51 static int ovl_rsync(struct rsync_data *data);
52 static int ovl_rsync_wrapper(void *data);
678 static int ovl_rsync(struct rsync_data *data) argument
703 if (ovl_mount(data->orig) < 0) {
707 if (ovl_mount(data->new) < 0) {
711 ret = do_rsync(data->orig->dest, data->new->dest);
713 ovl_umount(data->new);
714 ovl_umount(data->orig);
717 ERROR("rsyncing %s to %s", data
762 ovl_rsync_wrapper(void *data) argument
[all...]
/lxc/src/lxc/
H A Dparse.c38 int lxc_file_for_each_line(const char *file, lxc_file_cb callback, void *data) argument
52 err = callback(line, data);
H A Dexecute.c42 static int execute_start(struct lxc_handler *handler, void* data) argument
45 struct execute_args *my_args = data;
101 static int execute_post_start(struct lxc_handler *handler, void* data) argument
103 struct execute_args *my_args = data;
H A Dmainloop.c36 void *data; member in struct:mainloop_handler
58 (struct mainloop_handler *) events[i].data.ptr;
63 handler->data, descr) > 0)
76 lxc_mainloop_callback_t callback, void *data)
88 handler->data = data;
91 ev.data.ptr = handler;
75 lxc_mainloop_add_handler(struct lxc_epoll_descr *descr, int fd, lxc_mainloop_callback_t callback, void *data) argument
H A Daf_unix.c136 int lxc_abstract_unix_send_fd(int fd, int sendfd, void *data, size_t size) argument
158 iov.iov_base = data ? data : buf;
159 iov.iov_len = data ? size : sizeof(buf);
166 int lxc_abstract_unix_recv_fd(int fd, int *recvfd, void *data, size_t size) argument
180 iov.iov_base = data ? data : buf;
181 iov.iov_len = data ? size : sizeof(buf);
205 int lxc_abstract_unix_send_credential(int fd, void *data, size_t size) argument
230 iov.iov_base = data
238 lxc_abstract_unix_rcv_credential(int fd, void *data, size_t size) argument
[all...]
H A Dcommands.h52 const void *data; member in struct:lxc_cmd_req
58 void *data; member in struct:lxc_cmd_rsp
H A Dstart.h54 void *data; member in struct:lxc_handler
H A Dconsole.c158 static int lxc_console_cb_con(int fd, uint32_t events, void *data, argument
161 struct lxc_console *console = (struct lxc_console *)data;
H A Dlxc_monitord.c150 static int lxc_monitord_sock_handler(int fd, uint32_t events, void *data, argument
153 struct lxc_monitor *mon = data;
169 static int lxc_monitord_sock_accept(int fd, uint32_t events, void *data, argument
173 struct lxc_monitor *mon = data;
291 static int lxc_monitord_fifo_handler(int fd, uint32_t events, void *data, argument
296 struct lxc_monitor *mon = data;
H A Dlxcutmp.c139 typedef void (*lxc_mainloop_timer_t) (void *data);
143 static int utmp_shutdown_handler(int fd, uint32_t events, void *data,
146 lxc_mainloop_callback_t callback, void *data);
150 static int utmp_handler(int fd, uint32_t events, void *data, argument
156 struct lxc_utmp *utmp_data = (struct lxc_utmp *)data;
211 lxc_utmp_add_timer(descr, utmp_shutdown_handler, data);
222 lxc_utmp_add_timer(descr, utmp_shutdown_handler, data);
393 static int utmp_shutdown_handler(int fd, uint32_t events, void *data, argument
398 struct lxc_utmp *utmp_data = (struct lxc_utmp *)data;
431 lxc_mainloop_callback_t callback, void *data)
430 lxc_utmp_add_timer(struct lxc_epoll_descr *descr, lxc_mainloop_callback_t callback, void *data) argument
[all...]
H A Dnl.c45 char *data = ((char *)nlmsg) + NLMSG_HDRLEN; local
48 return data;
52 const void *data, size_t len)
64 memcpy(RTA_DATA(rta), data, len); local
70 const void *data, size_t size)
72 return nla_put(nlmsg, attr, data, size);
51 nla_put(struct nlmsg *nlmsg, int attr, const void *data, size_t len) argument
69 nla_put_buffer(struct nlmsg *nlmsg, int attr, const void *data, size_t size) argument
H A Dcommands.c58 * Both the request and response may contain additional data.
66 * adding information to the end of cmd.data, then you must introduce a new
160 * Note that if the command response datalen > 0, then data is
162 * the response data is <= a void * worth of data, it will be
163 * stored directly in data and datalen will be 0.
197 rspdata->ttynum = PTR_TO_INT(rsp->data);
198 rsp->data = rspdata;
202 DEBUG("command %s response data length is 0",
207 ERROR("Command %s response data
879 lxc_cmd_handler(int fd, uint32_t events, void *data, struct lxc_epoll_descr *descr) argument
944 lxc_cmd_accept(int fd, uint32_t events, void *data, struct lxc_epoll_descr *descr) argument
[all...]
H A Darguments.h139 void *data; member in struct:lxc_arguments
H A Dattach.c502 * until the pipe doesn't deliver any more data, but
503 * don't modify the existing data structure.
666 static int attach_child_main(void* data);
1062 static int attach_child_main(void* data) argument
1064 struct attach_clone_payload* payload = (struct attach_clone_payload*)data;
H A Dstart.c81 static int lxc_rmdir_onedev_wrapper(void *data);
278 static int signal_handler(int fd, uint32_t events, void *data, argument
284 pid_t *pid = data;
702 static int do_start(void *data) argument
705 struct lxc_handler *handler = data;
941 handler->ops->start(handler, handler->data);
1269 if (handler->ops->post_start(handler, handler->data))
1300 struct lxc_operations* ops, void *data, const char *lxcpath,
1314 handler->data = data;
1299 __lxc_start(const char *name, struct lxc_conf *conf, struct lxc_operations* ops, void *data, const char *lxcpath, bool backgrounded) argument
1432 start(struct lxc_handler *handler, void* data) argument
1443 post_start(struct lxc_handler *handler, void* data) argument
1513 lxc_rmdir_onedev_wrapper(void *data) argument
[all...]
H A Dnetwork.c590 /* Keep reading more data from the socket if the
984 unsigned char *data; local
990 data = (unsigned char *)sockaddr->sa_data;
1019 *data++ = (unsigned char) (val & 0377);
1239 /* Keep reading more data from the socket if the
H A Dconfile.c1950 static int parse_line(char *buffer, void *data) argument
1958 struct parse_line_conf *plc = data;
/lxc/src/lxc/tools/
H A Dlxc_top.c166 static int stdin_handler(int fd, uint32_t events, void *data, argument
169 char *in_char = data;
/lxc/src/lxc/cgroups/
H A Dcgfs.c227 static int rmdir_wrapper(void *data) argument
229 char *path = data;
479 * [optional X]: additional data
878 * so we don't have to copy the data structure
2567 static int chown_cgroup_wrapper(void *data) argument
2569 struct chown_data *arg = data;
2603 struct chown_data data; local
2613 data.cgroup_path = cgroup_path;
2614 data.origuid = geteuid();
2619 if (userns_exec_1(conf, chown_cgroup_wrapper, &data) <
[all...]
H A Dcgfsng.c78 * The cgroup data which is attached to the lxc_handler.
246 * Given a handler's cgroup data, return the struct hierarchy for the
1265 static int rmdir_wrapper(void *data) argument
1267 char *path = data;
1439 static int chown_cgroup_wrapper(void *data) argument
1441 struct chown_data *arg = data;
H A Dcgmanager.c432 static int chown_cgroup_wrapper(void *data) argument
434 struct chown_data *arg = data;
486 struct chown_data data; local
494 data.cgroup_path = cgroup_path;
495 data.origuid = geteuid();
500 if (userns_exec_1(conf, chown_cgroup_wrapper, &data) < 0) {

Completed in 362 milliseconds

12