Lines Matching refs:attach_opt
231 } attach_opt = {
238 OPT("namespace-id", 'n', arg_uint32, attach_opt, nsid,
240 OPT("controller", 'c', arg_uint32, attach_opt, ctrlrid,
246 { arg_string, &attach_opt.dev, "controller-id|namespace-id" },
254 .ctx_size = sizeof(attach_opt),
705 open_dev(attach_opt.dev, &fd, 1, 1);
710 } else if (attach_opt.nsid == NONE) {
715 if (attach_opt.nsid != NONE)
716 nsid = attach_opt.nsid;
725 if (attach_opt.ctrlrid == NONE) {
739 if (attach_opt.ctrlrid == NONE - 1)
740 attach_opt.ctrlrid = cd.ctrlr_id;
743 clist[1] = htole16(attach_opt.ctrlrid);
754 errx(EX_IOERR, "ioctl request to %s failed: %d", attach_opt.dev, result);