Lines Matching defs:nvio
90 struct pnviocdesc nvio;
104 memset(&nvio, 0, sizeof(nvio));
105 nvio.pnv_name = keyword;
106 nvio.pnv_namelen = strlen(nvio.pnv_name);
112 nvio.pnv_buf = &nvio_buf[0];
113 nvio.pnv_buflen = sizeof(nvio_buf);
114 if (ioctl(fd, PNVIOCGET, (char *) &nvio) < 0) {
119 if (nvio.pnv_buflen <= 0) {
124 (*ex->ex_handler) (ex, &nvio, NULL);
126 printf("%s\n", nvio.pnv_buf);
130 (*ex->ex_handler) (ex, &nvio, arg);
132 nvio.pnv_buf = arg;
133 nvio.pnv_buflen = strlen(arg);
136 if (ioctl(fd, PNVIOCSET, (char *) &nvio) < 0) {
144 (*ex->ex_handler) (ex, &nvio, NULL);
146 printf("%s\n", nvio.pnv_buf);
149 nvio.pnv_buf = &nvio_buf[0];
150 nvio.pnv_buflen = sizeof(nvio_buf);
151 if (ioctl(fd, PNVIOCGET, (char *) &nvio) < 0) {
156 if (nvio.pnv_buflen <= 0) {
162 (*ex->ex_handler) (ex, &nvio, NULL);
164 printf("%s=%s\n", keyword, nvio.pnv_buf);