Home
last modified time | relevance | path

Searched refs:devname (Results 1 – 12 of 12) 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()
Dkeychords_test.cpp144 std::string devname = init_fds + '/' + entry->d_name; in InitFds() local
146 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.cpp320 char* devname, int devname_size) in convert_to_devfs_name() argument
332 snprintf(devname, devname_size, "/dev/bus/usb/%03d/%03d", busnum, devnum); in convert_to_devfs_name()
339 char devname[64]; in find_usb_device() local
353 if (!convert_to_devfs_name(de->d_name, devname, sizeof(devname))) { in find_usb_device()
357 if ((fd = open(devname, O_RDWR)) < 0) { in find_usb_device()
361 if ((fd = open(devname, O_RDONLY)) < 0) { in find_usb_device()
370 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.cpp1221 std::string devname = "/dev/" + std::string(p, len); in __logcat() local
1227 size_t pos = devname.find(','); in __logcat()
1229 pipePurpose = devname.substr(pos + 1); in __logcat()
1230 devname = devname.substr(0, pos); in __logcat()
1237 devname.c_str()); in __logcat()
1240 FILE* fp = fopen(devname.c_str(), "web"); in __logcat()
1241 devname.erase(); in __logcat()
/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.h138 tBTM_BD_NAME devname; member
/system/core/libsysutils/src/
DNetlinkEvent.cpp258 const char *devname; in parseUlogPacketMessage() local
263 devname = pm->indev_name[0] ? pm->indev_name : pm->outdev_name; in parseUlogPacketMessage()
265 asprintf(&mParams[1], "INTERFACE=%s", devname); in parseUlogPacketMessage()