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.

198 * as <strong>of</strong>fline on error so that no access will occur. If you return<br />

199 * non-0, your slave_destroy routine will never get called for this<br />

200 * device, so don't leave any loose memory hanging around, clean<br />

201 * up after yourself before returning non-0<br />

202 *<br />

203 * Status: OPTIONAL<br />

204 */<br />

205 int (* slave_configure)(struct scsi_device *);<br />

206<br />

207 /*<br />

208 * Immediately prior to deallocating the device and after all activity<br />

209 * has ceased the mid layer calls this point so that the low level<br />

210 * driver may completely detach itself from the scsi device and vice<br />

211 * versa. The low level driver is responsible for freeing any memory<br />

212 * it allocated in the slave_alloc or slave_configure calls.<br />

213 *<br />

214 * Status: OPTIONAL<br />

215 */<br />

216 void (* slave_destroy)(struct scsi_device *);<br />

217<br />

218 /*<br />

219 * This function determines the bios parameters for a given<br />

220 * harddisk. These tend to be numbers that are made up by<br />

221 * the host adapter. Parameters:<br />

222 * size, device, list (heads, sectors, cylinders)<br />

223 *<br />

224 * Status: OPTIONAL<br />

225 */<br />

226 int (* bios_param)(struct scsi_device *, struct block_device *,<br />

227 sector_t, int []);<br />

228<br />

229 /*<br />

230 * Can be used to export driver statistics and other infos to the<br />

231 * world outside the kernel ie. userspace and it also provides an<br />

232 * interface to feed the driver with information.<br />

233 *<br />

234 * Status: OBSOLETE<br />

235 */<br />

236 int (*proc_info)(struct <strong>Scsi</strong>_Host *, char *, char **, <strong>of</strong>f_t, int, int);<br />

237<br />

238 /*<br />

239 * Name <strong>of</strong> proc directory<br />

240 */<br />

99

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

Saved successfully!

Ooh no, something went wrong!