static int dump_ipc_data(const struct cr_imgset *imgset) { int ret; ret = dump_ipc_var(img_from_set(imgset, CR_FD_IPC_VAR)); if (ret < 0) return ret; ret = dump_ipc_shm(img_from_set(imgset, CR_FD_IPCNS_SHM)); if (ret < 0) return ret; ret = dump_ipc_msg(img_from_set(imgset, CR_FD_IPCNS_MSG)); if (ret < 0) return ret; ret = dump_ipc_sem(img_from_set(imgset, CR_FD_IPCNS_SEM)); if (ret < 0) return ret; return 0; }
static int dump_ipc_data(const struct cr_fdset *fdset) { int ret; ret = dump_ipc_var(fdset_fd(fdset, CR_FD_IPC_VAR)); if (ret < 0) return ret; ret = dump_ipc_shm(fdset_fd(fdset, CR_FD_IPCNS_SHM)); if (ret < 0) return ret; ret = dump_ipc_msg(fdset_fd(fdset, CR_FD_IPCNS_MSG)); if (ret < 0) return ret; ret = dump_ipc_sem(fdset_fd(fdset, CR_FD_IPCNS_SEM)); if (ret < 0) return ret; return 0; }