Lines Matching refs:opio
77 struct opiocdesc opio; in op_handler() local
94 bzero(&opio, sizeof(opio)); in op_handler()
95 opio.op_nodeid = optnode; in op_handler()
96 opio.op_name = keyword; in op_handler()
97 opio.op_namelen = strlen(opio.op_name); in op_handler()
103 opio.op_buf = &opio_buf[0]; in op_handler()
104 opio.op_buflen = sizeof(opio_buf); in op_handler()
105 if (ioctl(fd, OPIOCGET, (char *)&opio) == -1) in op_handler()
108 if (opio.op_buflen <= 0) { in op_handler()
114 (*ex->ex_handler)(ex, &opio, NULL); in op_handler()
116 op_print(opio.op_buf); in op_handler()
120 (*ex->ex_handler)(ex, &opio, arg); in op_handler()
122 opio.op_buf = arg; in op_handler()
123 opio.op_buflen = strlen(arg); in op_handler()
126 if (ioctl(fd, OPIOCSET, (char *)&opio) == -1) in op_handler()
132 (*ex->ex_handler)(ex, &opio, NULL); in op_handler()
134 op_print(opio.op_buf); in op_handler()
137 opio.op_buf = &opio_buf[0]; in op_handler()
138 opio.op_buflen = sizeof(opio_buf); in op_handler()
139 if (ioctl(fd, OPIOCGET, (char *)&opio) == -1) in op_handler()
142 if (opio.op_buflen <= 0) { in op_handler()
150 (*ex->ex_handler)(ex, &opio, NULL); in op_handler()
153 op_print(opio.op_buf); in op_handler()