Lines Matching defs:ngc
261 struct ngm_connect ngc;
333 snprintf(ngc.path, sizeof ngc.path, "%s%s", ttypath, NG_TTY_HOOK);
334 snprintf(ngc.peerhook, sizeof ngc.peerhook, "%s", NG_ASYNC_HOOK_SYNC);
335 memcpy(ngc.ourhook, ngc.peerhook, sizeof ngc.ourhook);
337 ngc.path, ngc.peerhook, ngc.ourhook);
339 &ngc, sizeof ngc) < 0) {
341 p->link.name, ngc.ourhook, ngc.path, ngc.peerhook,
347 if (NgSendMsg(cs, ngc.path, NGM_GENERIC_COOKIE, NGM_NODEINFO, NULL, 0) < 0) {
349 p->link.name, ngc.path, strerror(errno));
354 p->link.name, ngc.path, strerror(errno));
359 snprintf(dev->hook, sizeof dev->hook, "%s", ngc.ourhook);