Home
last modified time | relevance | path

Searched refs:mtd_fd (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/udev/mtd_probe/
Dmtd_probe.c36 _cleanup_close_ int mtd_fd = -1; in main() local
44 mtd_fd = open(argv[1], O_RDONLY|O_CLOEXEC); in main()
45 if (mtd_fd < 0) { in main()
50 if (ioctl(mtd_fd, MEMGETINFO, &mtd_info) < 0) { in main()
55 if (probe_smart_media(mtd_fd, &mtd_info) < 0) in main()
Dprobe_smartmedia.c39 int probe_smart_media(int mtd_fd, mtd_info_t* info) { in probe_smart_media() argument
78 (void) lseek(mtd_fd, SEEK_SET, offset); in probe_smart_media()
80 if (read(mtd_fd, cis_buffer, SM_SECTOR_SIZE) == SM_SECTOR_SIZE) { in probe_smart_media()
Dmtd_probe.h52 int probe_smart_media(int mtd_fd, mtd_info_t *info);