Home
last modified time | relevance | path

Searched refs:devname (Results 1 – 11 of 11) sorted by relevance

/busybox-1.35.0/klibc-utils/
Dresume.c34 static dev_t name_to_dev_t(const char *devname) in name_to_dev_t() argument
42 if (strncmp(devname, "/dev/", 5) != 0) { in name_to_dev_t()
45 cptr = strchr(devname, ':'); in name_to_dev_t()
49 major_num = bb_strtou(devname, NULL, 10); in name_to_dev_t()
57 dev_t res = (dev_t) bb_strtoul(devname, NULL, 16); in name_to_dev_t()
62 devname = xasprintf("/dev/%s", devname); in name_to_dev_t()
66 if (stat(devname, &st) == 0 && S_ISBLK(st.st_mode)) in name_to_dev_t()
72 sysname = xasprintf("/sys/class/block/%s/dev", devname + 5); in name_to_dev_t()
Dipconfig.c.txt100 // "<devname>"
/busybox-1.35.0/console-tools/
Dsetlogcons.c43 char *devname; in setlogcons_main() local
61 devname = xasprintf("/dev/tty%u", arg.subarg); in setlogcons_main()
62 xioctl(xopen(devname, O_RDONLY), TIOCLINUX, &arg); in setlogcons_main()
/busybox-1.35.0/examples/
Ddevfsd.conf53 REGISTER .* COPY /lib/dev-state/$devname $devpath
54 CREATE .* COPY $devpath /lib/dev-state/$devname
55 CHANGE .* COPY $devpath /lib/dev-state/$devname
58 DELETE .* EXECUTE /bin/rm -f /lib/dev-state/$devname
67 REGISTER ^cdroms/cdrom0$ EXECUTE /bin/ln -sf $devname cdrom
98 REGISTER ^input/mice$ EXECUTE /bin/ln -sf $devname usbmouse
122 REGISTER ^dvb/card([0-9]+)/([^/0-9]*)[0-9]+$ EXECUTE /bin/ln -sf /dev/$devname ost/\2\1
/busybox-1.35.0/miscutils/
Ddevfsd.c178 char devname[DEVFS_PATHLEN]; /* This will be '\0' terminated */ member
261 const char *devname; member
752 && ((info->devname[0] == 'l' && info->devname[1] == 'o' in service_name()
753 && info->devname[2] == 'g' && !info->devname[3]) in service_name()
754 || (info->devname[0] == 'i' && info->devname[1] == 'n' in service_name()
755 && info->devname[2] == 'i' && info->devname[3] == 't' in service_name()
756 && info->devname[4] == 'c' && info->devname[5] == 't' in service_name()
757 && info->devname[6] == 'l' && !info->devname[7])) in service_name()
764 || regexec(&entry->preg, info->devname, MAX_SUBEXPR, mbuf, 0) != 0) in service_name()
808 if (stat(info->devname, &statbuf) != 0 in action_permissions()
[all …]
Dhdparm.c1656 static void process_dev(char *devname) argument
1669 xmove_fd(xopen_nonblocking(devname), fd);
1670 printf("\n%s:\n", devname);
/busybox-1.35.0/networking/
Droute.c354 const char *devname; in INET6_setroute() local
386 devname = NULL; in INET6_setroute()
418 if (!devname && ((k == KW_IPVx_DEVICE) || (!k && !*++args))) { in INET6_setroute()
420 devname = args[-1]; in INET6_setroute()
433 if (devname) { in INET6_setroute()
436 strncpy_IFNAMSIZ(ifr.ifr_name, devname); in INET6_setroute()
493 char devname[64], flags[16], *sdest, *sgw; in bb_displayroutes() local
516 devname, &d, &g, &flgs, &ref, &use, &metric, &m, in bb_displayroutes()
548 printf("%5d %-5d %6d %s\n", mtu, win, ir, devname); in bb_displayroutes()
550 printf("%-6d %-2d %7d %s\n", metric, ref, use, devname); in bb_displayroutes()
Dinterface.c850 char addr6[40], devname[21]; in ife_print6() local
863 &dad_status, devname) != EOF in ife_print6()
865 if (strcmp(devname, ptr->name) == 0) { in ife_print6()
/busybox-1.35.0/procps/
Dnmeter.c258 char devname[32]; in rdval_diskstats() local
278 if (devname_len && strncmp(devname, p, devname_len) == 0 && isdigit(p[devname_len])) { in rdval_diskstats()
284 if (devname_len > sizeof(devname)-1) in rdval_diskstats()
285 devname_len = sizeof(devname)-1; in rdval_diskstats()
286 strncpy(devname, p, devname_len); in rdval_diskstats()
/busybox-1.35.0/util-linux/
Dfdisk.c2997 char line[100], ptname[100], devname[120]; in list_devs_in_proc_partititons() local
3007 sprintf(devname, "/dev/%s", ptname); in list_devs_in_proc_partititons()
3008 if (is_whole_disk(devname)) in list_devs_in_proc_partititons()
3009 open_list_and_close(devname, 0); in list_devs_in_proc_partititons()
/busybox-1.35.0/include/
Dlibbb.h1606 int set_loop(char **devname, const char *file, unsigned long long offset,