Home
last modified time | relevance | path

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

/system/extras/tests/storage/
Dwipe_blkdev.c83 char *devname; in main() local
96 devname = argv[2]; in main()
101 devname = argv[1]; in main()
104 fd = open(devname, O_RDWR); in main()
106 fprintf(stderr, "Cannot open device %s\n", devname); in main()
111 fprintf(stderr, "Cannot stat %s\n", devname); in main()
116 fprintf(stderr, "%s is not a block device\n", devname); in main()
123 fprintf(stderr, "Cannot get size of block device %s\n", devname); in main()
/system/core/init/
Dkeychords.cpp235 std::string devname(kDevicePath); in InotifyHandler() local
236 devname += '/'; in InotifyHandler()
237 devname += event->name; in InotifyHandler()
239 GeteventOpenDevice(devname); in InotifyHandler()
241 GeteventCloseDevice(devname); in InotifyHandler()
265 std::string devname(kDevicePath); in GeteventOpenDevice() local
266 devname += '/'; in GeteventOpenDevice()
267 devname += entry->d_name; in GeteventOpenDevice()
268 GeteventOpenDevice(devname); in GeteventOpenDevice()
Ddevices.h94 std::string devname = devname_source_ == DEVNAME_UEVENT_DEVNAME in ParseDevPath() local
98 return dir_name_ + "/" + devname; in ParseDevPath()
DREADME.ueventd.md35 devname mode uid gid
47 devname uevent_devname|uevent_devpath
52 `devname` takes one of two options
62 devname uevent_devpath
Dkeychords_test.cpp143 std::string devname = init_fds + '/' + entry->d_name; in InitFds() local
145 auto retval = readlink(devname.c_str(), buf, sizeof(buf) - 1); in InitFds()
/system/core/rootdir/
Dueventd.rc5 devname uevent_devpath
9 devname uevent_devpath
13 devname uevent_devpath
17 devname uevent_devpath
23 # format for /dev rules: devname mode uid gid
/system/core/fastboot/
Dusb_linux.cpp329 char* devname, int devname_size) in convert_to_devfs_name() argument
341 snprintf(devname, devname_size, "/dev/bus/usb/%03d/%03d", busnum, devnum); in convert_to_devfs_name()
348 char devname[64]; in find_usb_device() local
362 if (!convert_to_devfs_name(de->d_name, devname, sizeof(devname))) { in find_usb_device()
366 if ((fd = open(devname, O_RDWR)) < 0) { in find_usb_device()
370 if ((fd = open(devname, O_RDONLY)) < 0) { in find_usb_device()
379 strcpy(usb->fname, devname); in find_usb_device()
/system/core/toolbox/
Dgetevent.c434 char devname[PATH_MAX]; in read_notify() local
450 strcpy(devname, dirname); in read_notify()
451 filename = devname + strlen(devname); in read_notify()
460 open_device(devname, print_flags); in read_notify()
463 close_device(devname, print_flags); in read_notify()
475 char devname[PATH_MAX]; in scan_dir() local
482 strcpy(devname, dirname); in scan_dir()
483 filename = devname + strlen(devname); in scan_dir()
491 open_device(devname, print_flags); in scan_dir()
/system/bt/btif/src/
Dbtif_pan.cc282 static int tap_if_up(const char* devname, const RawAddress* addr) { in tap_if_up() argument
291 strlcpy(ifr.ifr_name, devname, IFNAMSIZ); in tap_if_up()
295 "Could not get network hardware for interface:%s, errno:%s", devname, in tap_if_up()
301 strlcpy(ifr.ifr_name, devname, IFNAMSIZ); in tap_if_up()
322 devname, strerror(errno)); in tap_if_up()
329 strlcpy(ifr.ifr_name, devname, IF_NAMESIZE); in tap_if_up()
338 devname, errno); in tap_if_up()
343 BTIF_TRACE_DEBUG("network interface: %s is up", devname); in tap_if_up()
347 static int tap_if_down(const char* devname) { in tap_if_down() argument
355 strlcpy(ifr.ifr_name, devname, IF_NAMESIZE); in tap_if_down()
/system/core/logcat/
Dlogcat.cpp845 std::string devname = "/dev/" + std::string(p, len); in Run() local
851 size_t pos = devname.find(','); in Run()
853 pipePurpose = devname.substr(pos + 1); in Run()
854 devname = devname.substr(0, pos); in Run()
858 fprintf(stderr, "logcat using %s\n", devname.c_str()); in Run()
860 int fd = open(devname.c_str(), O_WRONLY | O_CLOEXEC); in Run()
/system/core/libusbhost/
Dusbhost.c101 char devname[32]; in find_existing_devices_bus() local
112 snprintf(devname, sizeof(devname), "%s/%s", busname, de->d_name); in find_existing_devices_bus()
113 done = added_cb(devname, client_data); in find_existing_devices_bus()
/system/bt/stack/include/
Dgap_api.h137 tBTM_BD_NAME devname; member
/system/core/libsysutils/src/
DNetlinkEvent.cpp283 const char *devname; in parseUlogPacketMessage() local
288 devname = pm->indev_name[0] ? pm->indev_name : pm->outdev_name; in parseUlogPacketMessage()
290 asprintf(&mParams[1], "INTERFACE=%s", devname); in parseUlogPacketMessage()