@@ -101,7 +101,7 @@ supplied functions" below.
101
101
Those functions in group b) are listed in a section entitled "Interface
102
102
functions" below. Their function pointers are placed in the members of
103
103
"struct scsi_host_template", an instance of which is passed to
104
- scsi_host_alloc() [ # ]_ . Those interface functions that the LLD does not
104
+ scsi_host_alloc(). Those interface functions that the LLD does not
105
105
wish to supply should have NULL placed in the corresponding member of
106
106
struct scsi_host_template. Defining an instance of struct
107
107
scsi_host_template at file scope will cause NULL to be placed in function
@@ -116,9 +116,6 @@ should be static. For example the sdev_init() function in an LLD
116
116
called "xxx" could be defined as
117
117
``static int xxx_sdev_init(struct scsi_device * sdev) { /* code */ } ``
118
118
119
- .. [# ] the scsi_host_alloc() function is a replacement for the rather vaguely
120
- named scsi_register() function in most situations.
121
-
122
119
123
120
Hotplug initialization model
124
121
============================
@@ -302,14 +299,12 @@ Summary:
302
299
- scsi_host_alloc - return a new scsi_host instance whose refcount==1
303
300
- scsi_host_get - increments Scsi_Host instance's refcount
304
301
- scsi_host_put - decrements Scsi_Host instance's refcount (free if 0)
305
- - scsi_register - create and register a scsi host adapter instance.
306
302
- scsi_remove_device - detach and remove a SCSI device
307
303
- scsi_remove_host - detach and remove all SCSI devices owned by host
308
304
- scsi_report_bus_reset - report scsi _bus_ reset observed
309
305
- scsi_scan_host - scan SCSI bus
310
306
- scsi_track_queue_full - track successive QUEUE_FULL events
311
307
- scsi_unblock_requests - allow further commands to be queued to given host
312
- - scsi_unregister - [calls scsi_host_put()]
313
308
314
309
315
310
Details::
@@ -474,27 +469,6 @@ Details::
474
469
void scsi_host_put(struct Scsi_Host *shost)
475
470
476
471
477
- /**
478
- * scsi_register - create and register a scsi host adapter instance.
479
- * @sht: pointer to scsi host template
480
- * @privsize: extra bytes to allocate in hostdata array (which is the
481
- * last member of the returned Scsi_Host instance)
482
- *
483
- * Returns pointer to new Scsi_Host instance or NULL on failure
484
- *
485
- * Might block: yes
486
- *
487
- * Notes: When this call returns to the LLD, the SCSI bus scan on
488
- * this host has _not_ yet been done.
489
- * The hostdata array (by default zero length) is a per host scratch
490
- * area for the LLD.
491
- *
492
- * Defined in: drivers/scsi/hosts.c .
493
- **/
494
- struct Scsi_Host * scsi_register(struct scsi_host_template * sht,
495
- int privsize)
496
-
497
-
498
472
/**
499
473
* scsi_remove_device - detach and remove a SCSI device
500
474
* @sdev: a pointer to a scsi device instance
@@ -524,7 +498,7 @@ Details::
524
498
*
525
499
* Notes: Should only be invoked if the "hotplug initialization
526
500
* model" is being used. It should be called _prior_ to
527
- * scsi_unregister ().
501
+ * calling scsi_host_put ().
528
502
*
529
503
* Defined in: drivers/scsi/hosts.c .
530
504
**/
@@ -601,31 +575,12 @@ Details::
601
575
void scsi_unblock_requests(struct Scsi_Host * shost)
602
576
603
577
604
- /**
605
- * scsi_unregister - unregister and free memory used by host instance
606
- * @shp: pointer to scsi host instance to unregister.
607
- *
608
- * Returns nothing
609
- *
610
- * Might block: no
611
- *
612
- * Notes: Should not be invoked if the "hotplug initialization
613
- * model" is being used. Called internally by exit_this_scsi_driver()
614
- * in the "passive initialization model". Hence a LLD has no need to
615
- * call this function directly.
616
- *
617
- * Defined in: drivers/scsi/hosts.c .
618
- **/
619
- void scsi_unregister(struct Scsi_Host * shp)
620
-
621
-
622
-
623
578
624
579
Interface Functions
625
580
===================
626
581
Interface functions are supplied (defined) by LLDs and their function
627
582
pointers are placed in an instance of struct scsi_host_template which
628
- is passed to scsi_host_alloc() or scsi_register() .
583
+ is passed to scsi_host_alloc().
629
584
Some are mandatory. Interface functions should be declared static. The
630
585
accepted convention is that driver "xyz" will declare its sdev_configure()
631
586
function as::
@@ -636,7 +591,7 @@ and so forth for all interface functions listed below.
636
591
637
592
A pointer to this function should be placed in the 'sdev_configure' member
638
593
of a "struct scsi_host_template" instance. A pointer to such an instance
639
- should be passed to the mid level's scsi_host_alloc() or scsi_register() .
594
+ should be passed to the mid level's scsi_host_alloc().
640
595
.
641
596
642
597
The interface functions are also described in the include/scsi/scsi_host.h
@@ -1111,7 +1066,7 @@ of interest:
1111
1066
hostdata[0]
1112
1067
- area reserved for LLD at end of struct Scsi_Host. Size
1113
1068
is set by the second argument (named 'xtr_bytes') to
1114
- scsi_host_alloc() or scsi_register() .
1069
+ scsi_host_alloc().
1115
1070
vendor_id
1116
1071
- a unique value that identifies the vendor supplying
1117
1072
the LLD for the Scsi_Host. Used most often in validating
0 commit comments