3/13/2023 0 Comments Creating character device in linuxIn practice, the overwhelmingly most common command set is the "SCSI transparent" command set - a SCSI protocol wrapped into USB.Īs a result, you would first have to learn how to write onto a disk device using /dev/sg* devices, by crafting your own SCSI command packets. The data would have to be formatted into valid USB packets first, and the ioctl() functions used to establish connection to the right USB endpoint within that device.Īnd since we're talking about a USB storage device, the procedure would be even more complicated: withing those USB packets, there should be one of six possible storage command sets. Using them requires several USB-specific ioctl() functions: just writing raw data into them from the shell is unlikely to accomplish much at all.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |