Searched refs:link_num (Results 1 – 1 of 1) sorted by relevance
/system/core/init/ |
D | devices.cpp | 425 int link_num = 0; in get_character_device_symlinks() local 457 if (asprintf(&links[link_num], "/dev/usb/%s%.*s", uevent->subsystem, width, parent) > 0) in get_character_device_symlinks() 458 link_num++; in get_character_device_symlinks() 460 links[link_num] = NULL; in get_character_device_symlinks() 481 int link_num = 0; in get_block_device_symlinks() local 509 if (asprintf(&links[link_num], "%s/by-name/%s", link_path, p) > 0) in get_block_device_symlinks() 510 link_num++; in get_block_device_symlinks() 512 links[link_num] = NULL; in get_block_device_symlinks() 517 if (asprintf(&links[link_num], "%s/by-num/p%d", link_path, uevent->partition_num) > 0) in get_block_device_symlinks() 518 link_num++; in get_block_device_symlinks() [all …]
|