Lines Matching defs:attach
129 if (!strcmp(argv[1], "attach")) {
374 struct gpio_attach attach;
376 memset(&attach, 0, sizeof(attach));
377 strlcpy(attach.ga_dvname, dvname, sizeof(attach.ga_dvname));
378 attach.ga_offset = offset;
379 attach.ga_mask = mask;
380 attach.ga_flags = flags;
381 if (ioctl(devfd, GPIOATTACH, &attach) == -1)
396 fprintf(stderr, " %s [-q] device attach device offset mask "