id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
scroll.3x(3) | NAME scroll, scrl, wscrl - scroll a curses window
SYNOPSIS #include <ncursesw/curses.h>
int scroll(WINDOW *win);
int scrl(int n);
int wscrl(WINDOW *win, int n);
DESCRIPTION scroll scrolls the given window up one line. That is, every visible line we might number i becomes line i-1. The text o... |
scrollok.3x(3) | NAME clearok, idlok, idcok, immedok, leaveok, setscrreg, wsetscrreg, scrollok - set curses output options
SYNOPSIS #include <ncursesw/curses.h>
int clearok(WINDOW *win, bool bf);
int idlok(WINDOW *win, bool bf);
void idcok(WINDOW *win, bool bf);
void immedok(WINDOW *win, bool bf);
i... |
scrub_next_slab(9) | NAME scrub_next_slab - Scrub the next slab if there is one.
SYNOPSIS void scrub_next_slab (struct slab_scrubber *scrubber );
ARGUMENTS scrubber The scrubber.
SEE ALSO Kernel file ./drivers/md/dm-vdo/slab-depot.c get_lock(9), must_make_entries_to_flush(9), is_reaping(9), initialize_tail_block(9), initialize_jou... |
scrub_slabs(9) | NAME scrub_slabs - Scrub all of an allocator's slabs that are eligible for scrubbing.
SYNOPSIS void scrub_slabs (struct block_allocator *allocator , struct vdo_completion *parent );
ARGUMENTS allocator The block_allocator to scrub.
parent The completion to notify when scrubbing is done, implies high_pr... |
scsi_10_lba_len(9) | NAME scsi_10_lba_len - Get LBA and transfer length
SYNOPSIS void scsi_10_lba_len (const u8 *cdb , u64 *plba , u32 *plen );
ARGUMENTS cdb SCSI command to translate
plba the LBA
plen the transfer length
DESCRIPTION Calculate LBA and transfer length for 10-byte commands.
SEE ALSO ... |
scsi_16_lba_len(9) | NAME scsi_16_lba_len - Get LBA and transfer length
SYNOPSIS void scsi_16_lba_len (const u8 *cdb , u64 *plba , u32 *plen );
ARGUMENTS cdb SCSI command to translate
plba the LBA
plen the transfer length
DESCRIPTION Calculate LBA and transfer length for 16-byte commands.
SEE ALSO ... |
scsi_6_lba_len(9) | NAME scsi_6_lba_len - Get LBA and transfer length
SYNOPSIS void scsi_6_lba_len (const u8 *cdb , u64 *plba , u32 *plen );
ARGUMENTS cdb SCSI command to translate
plba the LBA
plen the transfer length
DESCRIPTION Calculate LBA and transfer length for 6-byte commands.
SEE ALSO Ker... |
scsi_abort_command(9) | NAME scsi_abort_command - schedule a command abort
SYNOPSIS int scsi_abort_command (struct scsi_cmnd *scmd );
ARGUMENTS scmd scmd to abort.
DESCRIPTION We only need to abort commands after a command timeout
SEE ALSO Kernel file ./drivers/scsi/scsi_error.c scsi_schedule_eh(9), scmd_eh_abort_handler(9), s... |
scsi_add_device(9) | NAME scsi_add_device - creates a new SCSI (LU) instance
SYNOPSIS int scsi_add_device (struct Scsi_Host *host , uint channel , uint target , u64 lun );
ARGUMENTS host the Scsi_Host instance where the device is located
channel target channel number (rarely other than 0)
target target id ... |
scsi_add_host_with_dma(9) | NAME scsi_add_host_with_dma - add a scsi host with dma device
SYNOPSIS int scsi_add_host_with_dma (struct Scsi_Host *shost , struct device *dev , struct device *dma_dev );
ARGUMENTS shost scsi host pointer to add
dev a struct device of type scsi class
dma_dev dma device for the host
... |
scsi_add_lun(9) | NAME scsi_add_lun - allocate and fully initialze a scsi_device
SYNOPSIS int scsi_add_lun (struct scsi_device *sdev , unsigned char *inq_result , blist_flags_t *bflags , int async );
ARGUMENTS sdev holds information to be stored in the new scsi_device
inq_result holds the result of a previous INQUIRY t... |
scsi_add_single_device(9) | NAME scsi_add_single_device - Respond to user request to probe for/add device
SYNOPSIS int scsi_add_single_device (uint host , uint channel , uint id , uint lun );
ARGUMENTS host user-supplied decimal integer
channel user-supplied decimal integer
id user-supplied decimal integer
... |
scsi_alloc_request(9) | NAME scsi_alloc_request - allocate a block request and partially initialize its &scsi_cmnd
SYNOPSIS struct request * scsi_alloc_request (struct request_queue *q , blk_opf_t opf , blk_mq_req_flags_t flags );
ARGUMENTS q the device's request queue
opf the request operation code
flags ... |
scsi_alloc_sdev(9) | NAME scsi_alloc_sdev - allocate and setup a scsi_Device
SYNOPSIS struct scsi_device * scsi_alloc_sdev (struct scsi_target *starget , u64 lun , void *hostdata );
ARGUMENTS starget which target to allocate a scsi_device for
lun which lun
hostdata usually NULL and set by ->sdev_init instea... |
scsi_alloc_sgtables(9) | NAME scsi_alloc_sgtables - Allocate and initialize data and integrity scatterlists
SYNOPSIS blk_status_t scsi_alloc_sgtables (struct scsi_cmnd *cmd );
ARGUMENTS cmd SCSI command data structure to initialize.
DESCRIPTION Initializes cmd->sdb and also cmd->prot_sdb if data integrity is enabled for cmd.
RETURN... |
scsi_alloc_target(9) | NAME scsi_alloc_target - allocate a new or find an existing target
SYNOPSIS struct scsi_target * scsi_alloc_target (struct device *parent , int channel , uint id );
ARGUMENTS parent parent of the target (need not be a scsi host)
channel target channel number (zero if no channels)
id ... |
scsi_attach_vpd(9) | NAME scsi_attach_vpd - Attach Vital Product Data to a SCSI device structure
SYNOPSIS void scsi_attach_vpd (struct scsi_device *sdev );
ARGUMENTS sdev The device to ask
DESCRIPTION Attach the 'Device Identification' VPD page (0x83) and the structure. This information can be used to identify the device uniquely... |
scsi_bios_ptable(9) | NAME scsi_bios_ptable - Read PC partition table out of first sector of device.
SYNOPSIS unsigned char * scsi_bios_ptable (struct gendisk *dev );
ARGUMENTS dev from this device
DESCRIPTION Reads the first sector from the device and returns 0x42 bytes starting at offset 0x1be.
RETURN partition table in kmallo... |
scsi_block_requests(9) | NAME scsi_block_requests - Utility function used by low-level drivers to prevent further commands from being queued to the device.
SYNOPSIS void scsi_block_requests (struct Scsi_Host *shost );
ARGUMENTS shost host in question
DESCRIPTION There is no timer nor any other means by which the requests get unblocked... |
scsi_block_targets(9) | NAME scsi_block_targets - transition all SCSI child devices to SDEV_BLOCK state
SYNOPSIS void scsi_block_targets (struct Scsi_Host *shost , struct device *dev );
ARGUMENTS shost the Scsi_Host to which this device belongs
dev a parent device of one or more scsi_target devices
DESCRIPTION Iterate... |
scsi_block_when_processing_errors(9) | NAME scsi_block_when_processing_errors - Prevent cmds from being queued.
SYNOPSIS int scsi_block_when_processing_errors (struct scsi_device *sdev );
ARGUMENTS sdev Device on which we are performing recovery.
DESCRIPTION We block until the host is out of error recovery, and then check to see whether the host o... |
scsi_build_sense(9) | NAME scsi_build_sense - build sense data for a command
SYNOPSIS void scsi_build_sense (struct scsi_cmnd *scmd , int desc , u8 key , u8 asc , u8 ascq );
ARGUMENTS scmd scsi command for which the sense should be formatted
desc Sense format (non-zero == descriptor format, 0 == fixed format)
... |
scsi_build_sense_buffer(9) | NAME scsi_build_sense_buffer - build sense data in a buffer
SYNOPSIS void scsi_build_sense_buffer (int desc , u8 *buf , u8 key , u8 asc , u8 ascq );
ARGUMENTS desc Sense format (non-zero == descriptor format, 0 == fixed format)
buf Where to build sense data
key Sense key
... |
scsi_cdl_check(9) | NAME scsi_cdl_check - Check if a SCSI device supports Command Duration Limits
SYNOPSIS void scsi_cdl_check (struct scsi_device *sdev );
ARGUMENTS sdev The device to check
SEE ALSO Kernel file ./drivers/scsi/scsi.c scsi_finish_command(9), scsi_change_queue_depth(9), scsi_track_queue_full(9), scsi_vpd_inquir... |
scsi_cdl_enable(9) | NAME scsi_cdl_enable - Enable or disable a SCSI device supports for Command Duration Limits
SYNOPSIS int scsi_cdl_enable (struct scsi_device *sdev , bool enable );
ARGUMENTS sdev The target device
enable the target state
SEE ALSO Kernel file ./drivers/scsi/scsi.c scsi_finish_command(9), scsi_c... |
scsi_change_queue_depth(9) | NAME scsi_change_queue_depth - change a device's queue depth
SYNOPSIS int scsi_change_queue_depth (struct scsi_device *sdev , int depth );
ARGUMENTS sdev SCSI Device in question
depth number of commands allowed to be queued to the driver
DESCRIPTION Sets the device queue depth and returns the ne... |
scsi_check_passthrough(9) | NAME scsi_check_passthrough - Determine if passthrough scsi_cmnd needs a retry.
SYNOPSIS int scsi_check_passthrough (struct scsi_cmnd *scmd , struct scsi_failures *failures );
ARGUMENTS scmd scsi_cmnd to check.
failures scsi_failures struct that lists failures to check for.
DESCRIPTION Returns -EAG... |
scsi_check_sense(9) | NAME scsi_check_sense - Examine scsi cmd sense
SYNOPSIS enum scsi_disposition scsi_check_sense (struct scsi_cmnd *scmd );
ARGUMENTS scmd Cmd to have sense checked.
DESCRIPTION Return value: SUCCESS or FAILED or NEEDS_RETRY or ADD_TO_MLQUEUE
NOTES When a deferred error is detected the current command has not ... |
scsi_cmd_allowed(9) | NAME scsi_cmd_allowed - Check if the given command is allowed.
SYNOPSIS bool scsi_cmd_allowed (unsigned char *cmd , bool open_for_write );
ARGUMENTS cmd SCSI command to check
open_for_write
is the file / block device opened for writing?
DESCRIPTION Only a subset of commands are all... |
scsi_complete_async_scans(9) | NAME scsi_complete_async_scans - Wait for asynchronous scans to complete
SYNOPSIS int scsi_complete_async_scans (void );
ARGUMENTS void no arguments
DESCRIPTION When this function returns, any host which started scanning before this function was called will have finished its scan. Hosts which started scannin... |
scsi_decide_disposition(9) | NAME scsi_decide_disposition - Disposition a cmd on return from LLD.
SYNOPSIS enum scsi_disposition scsi_decide_disposition (struct scsi_cmnd *scmd );
ARGUMENTS scmd SCSI cmd to examine.
NOTES This is *only* called when we are examining the status after sending out the actual data command. any commands that... |
scsi_dev_info_add_list(9) | NAME scsi_dev_info_add_list - add a new devinfo list
SYNOPSIS int scsi_dev_info_add_list (enum scsi_devinfo_key key , const char *name );
ARGUMENTS key key of the list to add
name Name of the list to add (for /proc/scsi/device_info)
DESCRIPTION Adds the requested list, returns zero on success,... |
scsi_dev_info_list_add(9) | NAME scsi_dev_info_list_add - add one dev_info list entry.
SYNOPSIS int scsi_dev_info_list_add (int compatible , char *vendor , char *model , char *strflags , blist_flags_t flags );
ARGUMENTS compatible if true, null terminate short strings. Otherwise space pad.
vendor vendor string
model ... |
scsi_dev_info_list_add_keyed(9) | NAME scsi_dev_info_list_add_keyed - add one dev_info list entry.
SYNOPSIS int scsi_dev_info_list_add_keyed (int compatible , char *vendor , char *model , char *strflags , blist_flags_t flags , enum scsi_devinfo_key key );
ARGUMENTS compatible if true, null terminate short strings. Otherwise space pad.
vendo... |
scsi_dev_info_list_add_str(9) | NAME scsi_dev_info_list_add_str - parse dev_list and add to the scsi_dev_info_list.
SYNOPSIS int scsi_dev_info_list_add_str (char *dev_list );
ARGUMENTS dev_list string of device flags to add
DESCRIPTION Parse dev_list, and add entries to the scsi_dev_info_list. dev_list is of the form "vendor:product:flag,vendo... |
scsi_dev_info_list_find(9) | NAME scsi_dev_info_list_find - find a matching dev_info list entry.
SYNOPSIS struct scsi_dev_info_list * scsi_dev_info_list_find (const char *vendor , const char *model , enum scsi_devinfo_key key );
ARGUMENTS vendor full vendor string
model full model (product) string
key specify l... |
scsi_dev_info_remove_list(9) | NAME scsi_dev_info_remove_list - destroy an added devinfo list
SYNOPSIS int scsi_dev_info_remove_list (enum scsi_devinfo_key key );
ARGUMENTS key key of the list to destroy
DESCRIPTION Iterates over the entire list first, freeing all the values, then frees the list itself. Returns 0 on success or -EINVAL if... |
scsi_device_block(9) | NAME scsi_device_block - try to transition to the SDEV_BLOCK state
SYNOPSIS void scsi_device_block (struct scsi_device *sdev , void *data );
ARGUMENTS sdev device to block
data dummy argument, ignored
DESCRIPTION Pause SCSI command processing on the specified device. Callers must wait until all... |
scsi_device_from_queue(9) | NAME scsi_device_from_queue - return sdev associated with a request_queue
SYNOPSIS struct scsi_device * scsi_device_from_queue (struct request_queue *q );
ARGUMENTS q The request queue to return the sdev from
DESCRIPTION Return the sdev associated with a request queue or NULL if the request_queue does not ... |
scsi_device_get(9) | NAME scsi_device_get - get an additional reference to a scsi_device
SYNOPSIS int scsi_device_get (struct scsi_device *sdev );
ARGUMENTS sdev device to get a reference to
DESCRIPTION Gets a reference to the scsi_device and increments the use count of the underlying LLDD module. You must hold host_lock of th... |
scsi_device_is_pseudo_dev(9) | NAME scsi_device_is_pseudo_dev - Whether a device is a pseudo SCSI device.
SYNOPSIS bool scsi_device_is_pseudo_dev (struct scsi_device *sdev );
ARGUMENTS sdev SCSI device to examine
DESCRIPTION A pseudo SCSI device can be used to allocate SCSI commands but does not show up in sysfs. Additionally, the logical... |
scsi_device_lookup(9) | NAME scsi_device_lookup - find a device given the host
SYNOPSIS struct scsi_device * scsi_device_lookup (struct Scsi_Host *shost , uint channel , uint id , u64 lun );
ARGUMENTS shost SCSI host pointer
channel SCSI channel (zero if only one channel)
id SCSI target number (physical un... |
scsi_device_lookup_by_target(9) | NAME scsi_device_lookup_by_target - find a device given the target
SYNOPSIS struct scsi_device * scsi_device_lookup_by_target (struct scsi_target *starget , u64 lun );
ARGUMENTS starget SCSI target pointer
lun SCSI Logical Unit Number
DESCRIPTION Looks up the scsi_device with the specified lun fo... |
scsi_device_put(9) | NAME scsi_device_put - release a reference to a scsi_device
SYNOPSIS void scsi_device_put (struct scsi_device *sdev );
ARGUMENTS sdev device to release a reference on.
DESCRIPTION Release a reference to the scsi_device and decrements the use count of the underlying LLDD module. The device is freed once the l... |
scsi_device_quiesce(9) | NAME scsi_device_quiesce - Block all commands except power management.
SYNOPSIS int scsi_device_quiesce (struct scsi_device *sdev );
ARGUMENTS sdev scsi device to quiesce.
DESCRIPTION This works by trying to transition to the SDEV_QUIESCE state (which must be a legal transition). When the device is in thi... |
scsi_device_resume(9) | NAME scsi_device_resume - Restart user issued commands to a quiesced device.
SYNOPSIS void scsi_device_resume (struct scsi_device *sdev );
ARGUMENTS sdev scsi device to resume.
DESCRIPTION Moves the device from quiesced back to running and restarts the queues. Must be called with user context, may sleep.
SE... |
scsi_device_set_state(9) | NAME scsi_device_set_state - Take the given device through the device state model.
SYNOPSIS int scsi_device_set_state (struct scsi_device *sdev , enum scsi_device_state state );
ARGUMENTS sdev scsi device to change the state of.
state state to change to.
DESCRIPTION Returns zero if successful or... |
scsi_device_supports_vpd(9) | NAME scsi_device_supports_vpd - test if a device supports VPD pages
SYNOPSIS int scsi_device_supports_vpd (struct scsi_device *sdev );
ARGUMENTS sdev the struct scsi_device to test
DESCRIPTION If the 'try_vpd_pages' flag is set it takes precedence. Otherwise we will assume VPD pages are supported if the SCSI... |
scsi_device_type(9) | NAME scsi_device_type - Return 17-char string indicating device type.
SYNOPSIS const char * scsi_device_type (unsigned type );
ARGUMENTS type type number to look up
SEE ALSO Kernel file ./drivers/scsi/scsi_common.c scsilun_to_int(9), int_to_scsilun(9), scsi_normalize_sense(9), scsi_sense_desc_find(9), scsi_bu... |
scsi_dispatch_cmd(9) | NAME scsi_dispatch_cmd - Dispatch a command to the low-level driver.
SYNOPSIS enum scsi_qc_status scsi_dispatch_cmd (struct scsi_cmnd *cmd );
ARGUMENTS cmd command block we are dispatching.
RETURN nonzero return request was rejected and device's queue needs to be plugged.
SEE ALSO Kernel file ./drivers/sc... |
scsi_dld(9) | NAME scsi_dld - Get duration limit descriptor index
SYNOPSIS int scsi_dld (const u8 *cdb );
ARGUMENTS cdb SCSI command to translate
DESCRIPTION Returns the dld bits indicating the index of a command duration limit descriptor.
SEE ALSO Kernel file ./drivers/ata/libata-scsi.c ata_scsi_set_passthru_sense_fi... |
scsi_dma_map(9) | NAME scsi_dma_map - perform DMA mapping against command's sg lists
SYNOPSIS int scsi_dma_map (struct scsi_cmnd *cmd );
ARGUMENTS cmd scsi command
DESCRIPTION Returns the number of sg lists actually used, zero if the sg lists is NULL, or -ENOMEM if the mapping failed.
SEE ALSO Kernel file ./drivers/scsi/scsi... |
scsi_dma_unmap(9) | NAME scsi_dma_unmap - unmap command's sg lists mapped by scsi_dma_map
SYNOPSIS void scsi_dma_unmap (struct scsi_cmnd *cmd );
ARGUMENTS cmd scsi command
SEE ALSO Kernel file ./drivers/scsi/scsi_lib_dma.c scsi_dma_map(9)
April 2026 ... |
scsi_eh_bus_device_reset(9) | NAME scsi_eh_bus_device_reset - send bdr if needed
SYNOPSIS int scsi_eh_bus_device_reset (struct Scsi_Host *shost , struct list_head *work_q , struct list_head *done_q );
ARGUMENTS shost scsi host being recovered.
work_q list_head for pending commands.
done_q list_head for processed co... |
scsi_eh_bus_reset(9) | NAME scsi_eh_bus_reset - send a bus reset
SYNOPSIS int scsi_eh_bus_reset (struct Scsi_Host *shost , struct list_head *work_q , struct list_head *done_q );
ARGUMENTS shost scsi host being recovered.
work_q list_head for pending commands.
done_q list_head for processed commands.
SEE ALS... |
scsi_eh_completed_normally(9) | NAME scsi_eh_completed_normally - Disposition a eh cmd on return from LLD.
SYNOPSIS enum scsi_disposition scsi_eh_completed_normally (struct scsi_cmnd *scmd );
ARGUMENTS scmd SCSI cmd to examine.
NOTES This is *only* called when we are examining the status of commands queued during error recovery. the m... |
scsi_eh_done(9) | NAME scsi_eh_done - Completion function for error handling.
SYNOPSIS void scsi_eh_done (struct scsi_cmnd *scmd );
ARGUMENTS scmd Cmd that is done.
SEE ALSO Kernel file ./drivers/scsi/scsi_error.c scsi_schedule_eh(9), scmd_eh_abort_handler(9), scsi_abort_command(9), scsi_eh_reset(9), scsi_eh_scmd... |
scsi_eh_finish_cmd(9) | NAME scsi_eh_finish_cmd - Handle a cmd that eh is finished with.
SYNOPSIS void scsi_eh_finish_cmd (struct scsi_cmnd *scmd , struct list_head *done_q );
ARGUMENTS scmd Original SCSI cmd that eh has finished.
done_q Queue for processed commands.
NOTES We don't want to use the normal command comple... |
scsi_eh_flush_done_q(9) | NAME scsi_eh_flush_done_q - finish processed commands or retry them.
SYNOPSIS void scsi_eh_flush_done_q (struct list_head *done_q );
ARGUMENTS done_q list_head of processed commands.
SEE ALSO Kernel file ./drivers/scsi/scsi_error.c scsi_schedule_eh(9), scmd_eh_abort_handler(9), scsi_abort_command(9), ... |
scsi_eh_get_sense(9) | NAME scsi_eh_get_sense - Get device sense data.
SYNOPSIS int scsi_eh_get_sense (struct list_head *work_q , struct list_head *done_q );
ARGUMENTS work_q Queue of commands to process.
done_q Queue of processed commands.
DESCRIPTION See if we need to request sense information. if so, then get it now,... |
scsi_eh_host_reset(9) | NAME scsi_eh_host_reset - send a host reset
SYNOPSIS int scsi_eh_host_reset (struct Scsi_Host *shost , struct list_head *work_q , struct list_head *done_q );
ARGUMENTS shost host to be reset.
work_q list_head for pending commands.
done_q list_head for processed commands.
SEE ALSO Kern... |
scsi_eh_lock_door(9) | NAME scsi_eh_lock_door - Prevent medium removal for the specified device
SYNOPSIS void scsi_eh_lock_door (struct scsi_device *sdev );
ARGUMENTS sdev SCSI device to prevent medium removal
DESCRIPTION Locking: We must be called from process context.
NOTES We queue up an asynchronous "ALLOW MEDIUM REMOVAL" requ... |
scsi_eh_offline_sdevs(9) | NAME scsi_eh_offline_sdevs - offline scsi devices that fail to recover
SYNOPSIS void scsi_eh_offline_sdevs (struct list_head *work_q , struct list_head *done_q );
ARGUMENTS work_q list_head for pending commands.
done_q list_head for processed commands.
SEE ALSO Kernel file ./drivers/scsi/scsi_e... |
scsi_eh_prep_cmnd(9) | NAME scsi_eh_prep_cmnd - Save a scsi command info as part of error recovery
SYNOPSIS void scsi_eh_prep_cmnd (struct scsi_cmnd *scmd , struct scsi_eh_save *ses , unsigned char *cmnd , int cmnd_size , unsigned sense_bytes );
ARGUMENTS scmd SCSI command structure to hijack
ses structure to save re... |
scsi_eh_prt_fail_stats(9) | NAME scsi_eh_prt_fail_stats - Log info on failures.
SYNOPSIS void scsi_eh_prt_fail_stats (struct Scsi_Host *shost , struct list_head *work_q );
ARGUMENTS shost scsi host being recovered.
work_q Queue of scsi cmds to process.
SEE ALSO Kernel file ./drivers/scsi/scsi_error.c scsi_schedule_eh(9), ... |
scsi_eh_ready_devs(9) | NAME scsi_eh_ready_devs - check device ready state and recover if not.
SYNOPSIS void scsi_eh_ready_devs (struct Scsi_Host *shost , struct list_head *work_q , struct list_head *done_q );
ARGUMENTS shost host to be recovered.
work_q list_head for pending commands.
done_q list_head for pr... |
scsi_eh_reset(9) | NAME scsi_eh_reset - call into ->eh_action to reset internal counters
SYNOPSIS void scsi_eh_reset (struct scsi_cmnd *scmd );
ARGUMENTS scmd scmd to run eh on.
DESCRIPTION The scsi driver might be carrying internal state about the devices, so we need to call into the driver to reset the internal state once the... |
scsi_eh_restore_cmnd(9) | NAME scsi_eh_restore_cmnd - Restore a scsi command info as part of error recovery
SYNOPSIS void scsi_eh_restore_cmnd (struct scsi_cmnd* scmd , struct scsi_eh_save *ses );
ARGUMENTS scmd SCSI command structure to restore
ses saved information from a coresponding call to scsi_eh_prep_cmnd
DESCRI... |
scsi_eh_scmd_add(9) | NAME scsi_eh_scmd_add - add scsi cmd to error handling.
SYNOPSIS void scsi_eh_scmd_add (struct scsi_cmnd *scmd );
ARGUMENTS scmd scmd to run eh on.
SEE ALSO Kernel file ./drivers/scsi/scsi_error.c scsi_schedule_eh(9), scmd_eh_abort_handler(9), scsi_abort_command(9), scsi_eh_reset(9), scsi_timeout(9), scsi_... |
scsi_eh_target_reset(9) | NAME scsi_eh_target_reset - send target reset if needed
SYNOPSIS int scsi_eh_target_reset (struct Scsi_Host *shost , struct list_head *work_q , struct list_head *done_q );
ARGUMENTS shost scsi host being recovered.
work_q list_head for pending commands.
done_q list_head for processed c... |
scsi_eh_test_devices(9) | NAME scsi_eh_test_devices - check if devices are responding from error recovery.
SYNOPSIS int scsi_eh_test_devices (struct list_head *cmd_list , struct list_head *work_q , struct list_head *done_q , int try_stu );
ARGUMENTS cmd_list scsi commands in error recovery.
work_q queue for commands which stil... |
scsi_eh_try_stu(9) | NAME scsi_eh_try_stu - Send START_UNIT to device.
SYNOPSIS int scsi_eh_try_stu (struct scsi_cmnd *scmd );
ARGUMENTS scmd scsi_cmnd to send START_UNIT
DESCRIPTION Return value: 0 - Device is ready. 1 - Device NOT ready.
SEE ALSO Kernel file ./drivers/scsi/scsi_error.c scsi_schedule_eh(9), scmd_eh_abor... |
scsi_eh_tur(9) | NAME scsi_eh_tur - Send TUR to device.
SYNOPSIS int scsi_eh_tur (struct scsi_cmnd *scmd );
ARGUMENTS scmd scsi_cmnd to send TUR
DESCRIPTION Return value: 0 - Device is ready. 1 - Device NOT ready.
SEE ALSO Kernel file ./drivers/scsi/scsi_error.c scsi_schedule_eh(9), scmd_eh_abort_handler(9), scsi_a... |
scsi_error_handler(9) | NAME scsi_error_handler - SCSI error handler thread
SYNOPSIS int scsi_error_handler (void *data );
ARGUMENTS data Host for which we are running.
NOTES This is the main error handling loop. This is run as a kernel thread for every SCSI host and handles all error handling activity.
SEE ALSO Kernel file ./... |
scsi_evt_emit(9) | NAME scsi_evt_emit - emit a single SCSI device uevent
SYNOPSIS void scsi_evt_emit (struct scsi_device *sdev , struct scsi_event *evt );
ARGUMENTS sdev associated SCSI device
evt event to emit
DESCRIPTION Send a single uevent (scsi_event) to the associated scsi_device.
SEE ALSO Kernel file .... |
scsi_evt_thread(9) | NAME scsi_evt_thread - send a uevent for each scsi event
SYNOPSIS void scsi_evt_thread (struct work_struct *work );
ARGUMENTS work work struct for scsi_device
DESCRIPTION Dispatch queued events to their associated scsi_device kobjects as uevents.
SEE ALSO Kernel file ./drivers/scsi/scsi_lib.c __scsi_queue... |
scsi_execute_cmd(9) | NAME scsi_execute_cmd - insert request and wait for the result
SYNOPSIS int scsi_execute_cmd (struct scsi_device *sdev , const unsigned char *cmd , blk_opf_t opf , void *buffer , unsigned int bufflen , int timeout , int ml_retries , const struct scsi_exec_args *args );
ARGUMENTS sdev scsi_device
cmd ... |
scsi_exit_devinfo(9) | NAME scsi_exit_devinfo - remove /proc/scsi/device_info & the scsi_dev_info_list
SYNOPSIS void scsi_exit_devinfo (void );
ARGUMENTS void no arguments
SEE ALSO Kernel file ./drivers/scsi/scsi_devinfo.c scsi_dev_info_list_add(9), scsi_dev_info_list_add_keyed(9), scsi_dev_info_list_find(9), scsi_dev_info_list_... |
scsi_exit_procfs(9) | NAME scsi_exit_procfs - Remove scsi/scsi and scsi from procfs
SYNOPSIS void scsi_exit_procfs (void );
ARGUMENTS void no arguments
SEE ALSO Kernel file ./drivers/scsi/scsi_proc.c struct scsi_proc_entry(9), scsi_template_proc_dir(9), scsi_proc_hostdir_add(9), scsi_proc_hostdir_rm(9), scsi_proc_host_add(9... |
scsi_failures_reset_retries(9) | NAME scsi_failures_reset_retries - reset all failures to zero
SYNOPSIS void scsi_failures_reset_retries (struct scsi_failures *failures );
ARGUMENTS failures struct scsi_failures with specific failure modes set
SEE ALSO Kernel file ./drivers/scsi/scsi_lib.c __scsi_queue_insert(9), scsi_queue_insert(9), scsi_ch... |
scsi_finish_async_scan(9) | NAME scsi_finish_async_scan - asynchronous scan has finished
SYNOPSIS void scsi_finish_async_scan (struct async_scan_data *data );
ARGUMENTS data cookie returned from earlier call to scsi_prep_async_scan
DESCRIPTION All the devices currently attached to this host have been found. This function announces all ... |
scsi_finish_command(9) | NAME scsi_finish_command - cleanup and pass command back to upper layer
SYNOPSIS void scsi_finish_command (struct scsi_cmnd *cmd );
ARGUMENTS cmd the command
DESCRIPTION Pass command off to upper layer for finishing of I/O request, waking processes that are waiting on results, etc.
SEE ALSO Kernel file ./... |
scsi_flush_work(9) | NAME scsi_flush_work - Flush a Scsi_Host's workqueue.
SYNOPSIS void scsi_flush_work (struct Scsi_Host *shost );
ARGUMENTS shost Pointer to Scsi_Host.
SEE ALSO Kernel file ./drivers/scsi/hosts.c scsi_host_set_state(9), scsi_remove_host(9), scsi_add_host_with_dma(9), scsi_host_alloc(9), scsi_host_l... |
scsi_get_device_flags(9) | NAME scsi_get_device_flags - get device specific flags from the dynamic device list.
SYNOPSIS blist_flags_t scsi_get_device_flags (struct scsi_device *sdev , const unsigned char *vendor , const unsigned char *model );
ARGUMENTS sdev scsi_device to get flags for
vendor vendor name
model ... |
scsi_get_device_flags_keyed(9) | NAME scsi_get_device_flags_keyed - get device specific flags from the dynamic device list
SYNOPSIS blist_flags_t scsi_get_device_flags_keyed (struct scsi_device *sdev , const unsigned char *vendor , const unsigned char *model , enum scsi_devinfo_key key );
ARGUMENTS sdev scsi_device to get flags for
ve... |
scsi_get_internal_cmd(9) | NAME scsi_get_internal_cmd - Allocate an internal SCSI command.
SYNOPSIS struct scsi_cmnd * scsi_get_internal_cmd (struct scsi_device *sdev , enum dma_data_direction data_direction , blk_mq_req_flags_t flags );
ARGUMENTS sdev SCSI device from which to allocate the command
data_direction
... |
scsi_get_pseudo_sdev(9) | NAME scsi_get_pseudo_sdev - Attach a pseudo SCSI device to a SCSI host
SYNOPSIS struct scsi_device * scsi_get_pseudo_sdev (struct Scsi_Host *shost );
ARGUMENTS shost Host that needs a pseudo SCSI device
DESCRIPTION Lock status: None assumed.
RETURN The scsi_device or NULL
NOTES Attach a single scsi_device t... |
scsi_get_sense_info_fld(9) | NAME scsi_get_sense_info_fld - get information field from sense data (either fixed or descriptor format)
SYNOPSIS bool scsi_get_sense_info_fld (const u8 *sense_buffer , int sb_len , u64 *info_out );
ARGUMENTS sense_buffer byte array of sense data
sb_len number of valid bytes in sense_buffer
info_... |
scsi_get_vpd_buf(9) | NAME scsi_get_vpd_buf - Get Vital Product Data from a SCSI device
SYNOPSIS struct scsi_vpd * scsi_get_vpd_buf (struct scsi_device *sdev , u8 page );
ARGUMENTS sdev The device to ask
page Which Vital Product Data to return
DESCRIPTION Returns NULL upon failure.
SEE ALSO Kernel file ./drivers/... |
scsi_get_vpd_page(9) | NAME scsi_get_vpd_page - Get Vital Product Data from a SCSI device
SYNOPSIS int scsi_get_vpd_page (struct scsi_device *sdev , u8 page , unsigned char *buf , int buf_len );
ARGUMENTS sdev The device to ask
page Which Vital Product Data to return
buf where to store the VPD
... |
scsi_host_alloc(9) | NAME scsi_host_alloc - register a scsi host adapter instance.
SYNOPSIS struct Scsi_Host * scsi_host_alloc (const struct scsi_host_template *sht , int privsize );
ARGUMENTS sht pointer to scsi host template
privsize extra bytes to allocate for driver
NOTE Allocate a new Scsi_Host and perform basic ... |
scsi_host_block(9) | NAME scsi_host_block - Try to transition all logical units to the SDEV_BLOCK state
SYNOPSIS int scsi_host_block (struct Scsi_Host *shost );
ARGUMENTS shost device to block
DESCRIPTION Pause SCSI command processing for all logical units associated with the SCSI host and wait until pending scsi_queue_rq calls ha... |
scsi_host_busy(9) | NAME scsi_host_busy - Return the count of in-flight commands
SYNOPSIS int scsi_host_busy (struct Scsi_Host *shost );
ARGUMENTS shost Pointer to Scsi_Host
SEE ALSO Kernel file ./drivers/scsi/hosts.c scsi_host_set_state(9), scsi_remove_host(9), scsi_add_host_with_dma(9), scsi_host_alloc(9), scsi_ho... |
scsi_host_busy_iter(9) | NAME scsi_host_busy_iter - Iterate over all busy commands
SYNOPSIS void scsi_host_busy_iter (struct Scsi_Host *shost , bool (*fn)(struct scsi_cmnd *, void *) , void *priv );
ARGUMENTS shost Pointer to Scsi_Host.
fn Function to call on each busy command
priv Data pointer passed to... |
scsi_host_complete_all_commands(9) | NAME scsi_host_complete_all_commands - Terminate all running commands
SYNOPSIS void scsi_host_complete_all_commands (struct Scsi_Host *shost , enum scsi_host_status status );
ARGUMENTS shost Scsi Host on which commands should be terminated
status Status to be set for the terminated commands
DESCRI... |
scsi_host_find_tag(9) | NAME scsi_host_find_tag - find the tagged command by host
SYNOPSIS struct scsi_cmnd * scsi_host_find_tag (struct Scsi_Host *shost , int tag );
ARGUMENTS shost pointer to scsi_host
tag tag
NOTE for devices using multiple hardware queues tag must have been generated by blk_mq_unique_tag.
SEE ALS... |
scsi_host_get(9) | NAME scsi_host_get - inc a Scsi_Host ref count
SYNOPSIS struct Scsi_Host * scsi_host_get (struct Scsi_Host *shost );
ARGUMENTS shost Pointer to Scsi_Host to inc.
SEE ALSO Kernel file ./drivers/scsi/hosts.c scsi_host_set_state(9), scsi_remove_host(9), scsi_add_host_with_dma(9), scsi_host_alloc(9), ... |
scsi_host_lookup(9) | NAME scsi_host_lookup - get a reference to a Scsi_Host by host no
SYNOPSIS struct Scsi_Host * scsi_host_lookup (unsigned int hostnum );
ARGUMENTS hostnum host number to locate
DESCRIPTION Return value: A pointer to located Scsi_Host or NULL. The caller must do a scsi_host_put to drop the reference that scsi_hos... |
scsi_host_put(9) | NAME scsi_host_put - dec a Scsi_Host ref count
SYNOPSIS void scsi_host_put (struct Scsi_Host *shost );
ARGUMENTS shost Pointer to Scsi_Host to dec.
SEE ALSO Kernel file ./drivers/scsi/hosts.c scsi_host_set_state(9), scsi_remove_host(9), scsi_add_host_with_dma(9), scsi_host_alloc(9), scsi_host_loo... |
scsi_host_scan_allowed(9) | NAME scsi_host_scan_allowed - Is scanning of this host allowed
SYNOPSIS int scsi_host_scan_allowed (struct Scsi_Host *shost );
ARGUMENTS shost Pointer to Scsi_Host.
SEE ALSO Kernel file ./include/scsi/scsi_host.h enum scsi_timeout_action(9)
April 2026 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.