Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1207351
| From | Hannes Reinecke <hare@suse.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] scsi: Export SCSI Inquiry data to sysfs |
| Date | 2015-08-14 08:40 +0200 |
| Message-ID | <pXgOJ-2xc-5@gated-at.bofh.it> (permalink) |
| References | <pWZkT-2px-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 08/13/2015 01:50 PM, Johannes Thumshirn wrote: > Export the RAW SCSI Inquiry to sysfs as binfile. This way the data can be > used by userlang without the need to have and ioctl or use the sg_inq tool. > userland! > Here is an example of the provided data > > linux:~ # hexdump /sys/class/scsi_device/1\:0\:0\:0/device/inquiry > 0000000 8005 3205 001f 0000 4551 554d 2020 2020 > 0000010 4551 554d 4420 4456 522d 4d4f 2020 2020 > 0000020 2e32 2e33 > 0000024 > > Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> > --- > drivers/scsi/scsi_sysfs.c | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > Reviewed-by: Hannes Reinecke <hare@suse.de> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] scsi: Export SCSI Inquiry data to sysfs Johannes Thumshirn <jthumshirn@suse.de> - 2015-08-13 14:00 +0200
Re: [PATCH] scsi: Export SCSI Inquiry data to sysfs Hannes Reinecke <hare@suse.de> - 2015-08-14 08:40 +0200
Re: [PATCH] scsi: Export SCSI Inquiry data to sysfs James Smart <james.smart@avagotech.com> - 2015-08-14 14:30 +0200
Re: [PATCH] scsi: Export SCSI Inquiry data to sysfs Hannes Reinecke <hare@suse.de> - 2015-08-14 15:00 +0200
csiph-web