Lines Matching refs:name

240  * Search down the linked list off a dir to find "name"		
246 dev_findname(devnode_t * dir, const char *name)
251 if (name[0] == '.')
253 if(name[1] == 0)
257 if((name[1] == '.') && (name[2] == 0))
267 if(!(strncmp(name, newfp->de_name, sizeof(newfp->de_name))))
372 * Creates a name node, and links it to the supplied node
377 dev_add_name(const char * name, devnode_t * dirnode, __unused devdirent_t * back,
385 if( dev_findname(dirnode,name))
389 * make sure the name is legal
392 if (!name || (strlen(name) > (DEVMAXNAMESIZE - 1)))
418 dnp->dn_links++ ; /* implicit from our own name-node */
460 * put the name into the directory entry.
462 strlcpy(dirent_p->de_name, name, DEVMAXNAMESIZE);
480 dirnode->dn_len += strlen(name) + 8;/*ok, ok?*/
617 MALLOC(dnp->dn_typeinfo.Slnk.name, char *,
620 if (!dnp->dn_typeinfo.Slnk.name) {
624 strlcpy(dnp->dn_typeinfo.Slnk.name, typeinfo->Slnk.name,
670 FREE(dnp->dn_typeinfo.Slnk.name, M_DEVFSNODE);
1018 * Free a name node
1087 * Free a hierarchy starting at a directory node name
1350 * add a whole device, with no prototype.. make name element and node
1356 dev_add_entry(const char *name, devnode_t * parent, int type, devnode_type_t * typeinfo,
1366 name,error);
1369 if ((error = dev_add_name(name ,parent ,NULL, dnp, nm_pp)) != 0)
1372 printf("devfs: %s: name slot allocation failed (Errno=%d)\n",
1373 name,error);
1455 * fmt, ... - path format string with printf args to format the path name
1498 * fmt, ... - path format string with printf args to format the path name
1531 char *name, buf[256]; /* XXX */
1548 name = NULL;
1552 name=&buf[i];
1557 if (name) {
1558 *name++ = '\0';
1561 name = buf;
1596 if (dev_add_entry(name, dnp, type, &typeinfo, NULL, NULL, &new_dev) == 0) {