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.

328 * True if the low-level driver performs its own reset-settle delays.<br />

101<br />

329 */<br />

330 unsigned skip_settle_delay:1;<br />

331<br />

332 /*<br />

333 * Countdown for host blocking with no commands outstanding<br />

334 */<br />

335 unsigned int max_host_blocked;<br />

336<br />

337 /*<br />

338 * Default value for the blocking. If the queue is empty,<br />

339 * host_blocked counts down in the request_fn until it restarts<br />

340 * host operations as zero is reached.<br />

341 *<br />

342 * FIXME: This should probably be a value in the template<br />

343 */<br />

344 #define SCSI_DEFAULT_HOST_BLOCKED 7<br />

345<br />

346 /*<br />

347 * Pointer to the sysfs class properties for this host, NULL terminated.<br />

348 */<br />

349 struct class_device_attribute **shost_attrs;<br />

350<br />

351 /*<br />

352 * Pointer to the SCSI device properties for this host, NULL terminated.<br />

353 */<br />

354 struct device_attribute **sdev_attrs;<br />

355<br />

356 /*<br />

357 * List <strong>of</strong> hosts per template.<br />

358 *<br />

359 * This is only for use by scsi_module.c for legacy templates.<br />

360 * For these access to it is synchronized implicitly by<br />

361 * module_init/module_exit.<br />

362 */<br />

363 struct list_head legacy_hosts;<br />

364 };<br />

简直难以置信,一个结构体的定义加上注释从第40 行到第364 行,写代码的同志辛苦了,定义出这么一个<br />

变态的数据结构来,咱们有理由相信写代码的那位或者那些人有很多是单身,因为那句"不在寂寞中恋爱,就<br />

在寂寞中变态"在他们身上体现的淋漓尽致.但是没办法,咱们还得继续讲,时光的背影如此悠悠,往日的岁月<br />

又上心头,此时不讲更待何时呢?您若是还没明白什么是温柔,还想好好感受雪花绽放的气候,那您就先歇会<br />

吧,咱们先往下走了.其他也不想说什么了,从这个结构体的名称,scsi_host_template 来看,也基本知道,<br />

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

Saved successfully!

Ooh no, something went wrong!