/* Receive GRES information from slurmd on the specified file descriptor */ extern void recv_stepd(int fd) { int i, mps_cnt; mps_dev_info_t *mps_ptr = NULL; common_recv_stepd(fd, &gres_devices); safe_read(fd, &mps_cnt, sizeof(int)); if (mps_cnt) { mps_info = list_create(_mps_conf_del); for (i = 0; i < mps_cnt; i++) { mps_ptr = xmalloc(sizeof(mps_dev_info_t)); safe_read(fd, &mps_ptr->count, sizeof(uint64_t)); safe_read(fd, &mps_ptr->id, sizeof(int)); list_append(mps_info, mps_ptr); mps_ptr = NULL; } } return; rwfail: error("%s: failed", __func__); xfree(mps_ptr); return; }
/* Receive GRES information from slurmd on the specified file descriptor */ extern void recv_stepd(int fd) { common_recv_stepd(fd, &gres_devices); }