07.06.2013 Views

Scsi - Index of

Scsi - Index of

Scsi - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

395 US_SC_DEVICE, US_PR_DEVICE, NULL,<br />

396 US_FL_FIX_INQUIRY ),<br />

常用掌上电脑的同志们不会对Sony 的这些PEG 产品陌生吧.<br />

彼岸花的传说(六)<br />

七年前,在那个千禧年里,凭借获得金鸡奖最佳女主角的章子怡姐姐说:"我长得挺漂<br />

亮,又是单身,男人不可能对我没兴趣!"是的,古人云,男人分两种,一种是好色,一种是十分好色.所以章子怡<br />

这话一点没错.不过,对于大多数80 后来说,他们早已不再像十年前那么另类,那么出格,因为他们生活压力<br />

很重,他们很老实,很现实,一个显而易见的事实,yy 章子怡不如老老实实的学Linux.虽然很多人对两者都<br />

有<br />

兴趣.但至少学会了后者,可以混口饭吃,谁叫我们都是知识混子呢.<br />

此时,镜头一转,我们继续接着上一节往下看.fill_inquiry_response(),这个函数来自<br />

drivers/usb/storage/usb.c 中,<br />

240 /*<br />

241 * fill_inquiry_response takes an unsigned char array (which must<br />

242 * be at least 36 characters) and populates the vendor name,<br />

243 * product name, and revision fields. Then the array is copied<br />

244 * into the SCSI command's response buffer (oddly enough<br />

245 * called request_buffer). data_len contains the length <strong>of</strong> the<br />

246 * data array, which again must be at least 36.<br />

247 */<br />

248<br />

249 void fill_inquiry_response(struct us_data *us, unsigned char *data,<br />

250 unsigned int data_len)<br />

251 {<br />

252 if (data_lenunusual_dev->vendorName,<br />

267 strlen(us->unusual_dev->vendorName) > 8 ? 8 :<br />

268 strlen(us->unusual_dev->vendorName));

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!