Lines Matching defs:attach
208 struct gpio_attach attach;
212 memset(&attach, 0, sizeof(attach));
213 strlcpy(attach.ga_dvname, luaL_checkstring(L, 2),
214 sizeof(attach.ga_dvname));
215 attach.ga_offset = (int)luaL_checkinteger(L, 3);
216 attach.ga_mask = (int)luaL_checkinteger(L, 4);
218 attach.ga_flags = (int)luaL_checkinteger(L, 5);
220 attach.ga_flags = 0;
222 if (ioctl(*fd, GPIOATTACH, &attach) == -1)
286 { "attach", gpio_attach },