GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SG(4) FreeBSD Kernel Interfaces Manual SG(4)

sgLinux ioctl-compatible SCSI passthru device

device sg
device scbus

The sg driver provides a Linux compatible scsi passthru device. This driver attaches to all cam(4) peripheral devices. It is similar to the pass(4) device, but uses the Linux interfaces, rather than the FreeBSD CAM interfaces.

The following subset of the Linux sg ioctl interfaces are implemented:

SG_SET_TIMEOUT
u_int to Set the timeout in milliseconds.
SG_GET_TIMEOUT
Get the timeout in milliseconds
SG_GET_RESERVED_SIZE
u_int Returns the size of the I/O one can do this device.
SG_GET_SCSI_ID
struct sg_scsi_id Returns the bus number, channel, scsi bus ID number, lun and other information about the SCSI device.
SG_GET_SG_TABLESIZE
u_int Returns the table size, though hard wired to 0.
SG_GET_VERSION_NUM
u_int Return the version number that is implemented.
SG_IO
struct sg_io_hdr
All other ioctl interfaces return ENODEV.

/dev/sg*
Passthru devices.

cam(4), pass(4)

The sg driver first appeared in FreeBSD 7.0.

May 6, 2024 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 4 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.