Lines Matching refs:link_num
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()
520 links[link_num] = NULL; in get_block_device_symlinks()
524 if (asprintf(&links[link_num], "%s/%s", link_path, slash + 1) > 0) in get_block_device_symlinks()
525 link_num++; in get_block_device_symlinks()
527 links[link_num] = NULL; in get_block_device_symlinks()