Home | History | Annotate | Download | only in eeprom

Lines Matching defs:opio

100 	struct opiocdesc opio;
119 memset(&opio, 0, sizeof(opio));
120 opio.op_nodeid = optnode;
121 opio.op_name = keyword;
122 opio.op_namelen = strlen(opio.op_name);
128 opio.op_buf = &opio_buf[0];
129 opio.op_buflen = sizeof(opio_buf);
130 if (ioctl(fd, OPIOCGET, (char *)&opio) < 0) {
135 if (opio.op_buflen <= 0) {
141 (*ex->ex_handler)(ex, &opio, NULL);
143 printf("%s\n", opio.op_buf);
147 (*ex->ex_handler)(ex, &opio, arg);
149 opio.op_buf = arg;
150 opio.op_buflen = strlen(arg);
153 if (ioctl(fd, OPIOCSET, (char *)&opio) < 0) {
161 (*ex->ex_handler)(ex, &opio, NULL);
163 printf("%s\n", opio.op_buf);
166 opio.op_buf = &opio_buf[0];
167 opio.op_buflen = sizeof(opio_buf);
168 if (ioctl(fd, OPIOCGET, (char *)&opio) < 0) {
173 if (opio.op_buflen <= 0) {
180 (*ex->ex_handler)(ex, &opio, NULL);
182 printf("%s=%s\n", keyword, opio.op_buf);