Lines Matching defs:node

167 	node_p	node;
661 if (ng_make_node_common (&typestruct, &d->node) != 0) {
662 printf ("%s: cannot make common node\n", d->name);
663 d->node = NULL;
667 NG_NODE_SET_PRIVATE (d->node, d);
669 d->node->private = d;
673 if (ng_name_node (d->node, d->nodename)) {
674 printf ("%s: cannot name node\n", d->nodename);
676 NG_NODE_UNREF (d->node);
678 ng_rmnode (d->node);
679 ng_unref (d->node);
809 if (d->node) {
810 ng_rmnode_self (d->node);
811 NG_NODE_UNREF (d->node);
812 d->node = NULL;
819 ng_rmnode (d->node);
820 d->node = 0;
1990 static int ng_ce_constructor (node_p node)
1992 drv_t *d = NG_NODE_PRIVATE (node);
1994 static int ng_ce_constructor (node_p *node)
1996 drv_t *d = (*node)->private;
2002 static int ng_ce_newhook (node_p node, hook_p hook, const char *name)
2006 drv_t *d = NG_NODE_PRIVATE (node);
2008 drv_t *d = node->private;
2263 static int ng_ce_rcvmsg (node_p node, item_p item, hook_p lasthook)
2265 drv_t *d = NG_NODE_PRIVATE (node);
2268 static int ng_ce_rcvmsg (node_p node, struct ng_mesg *msg,
2271 drv_t *d = node->private;
2322 l += sprintf (s + l, "Error: node not connect to channel");
2337 NG_RESPOND_MSG (error, node, item, resp);
2359 drv_t *d = hook->node->private;
2427 static int ng_ce_rmnode (node_p node)
2430 drv_t *d = NG_NODE_PRIVATE (node);
2443 if (node->nd_flags & NGF_REALLY_DIE) {
2445 if (node->nd_flags & NG_REALLY_DIE) {
2447 NG_NODE_SET_PRIVATE (node, NULL);
2448 NG_NODE_UNREF (node);
2451 NG_NODE_REVIVE(node); /* Persistent node */
2453 node->nd_flags &= ~NG_INVALID;
2457 drv_t *d = node->private;
2468 node->flags |= NG_INVALID;
2469 ng_cutlinks (node);
2471 ng_unname (node);
2472 ng_unref (node);
2483 drv_t *d = hook->node->private;
2499 drv_t *d = hook->node->private;