smartmontools SVN Rev 5611
Utility to control and monitor storage systems with "S.M.A.R.T."
Classes | Functions | Variables
os_freebsd Namespace Reference

Classes

class  freebsd_areca_ata_device
 Areca RAID support. More...
 
class  freebsd_areca_scsi_device
 
class  freebsd_ata_device
 Implement standard ATA support. More...
 
class  freebsd_cciss_device
 Implement CCISS RAID support with old functions. More...
 
class  freebsd_escalade_device
 Implement AMCC/3ware RAID support. More...
 
class  freebsd_highpoint_device
 Implement Highpoint RAID support with old functions. More...
 
class  freebsd_megaraid_device
 LSI MegaRAID support. More...
 
class  freebsd_nvme_device
 NVMe support. More...
 
class  freebsd_scsi_device
 Standard SCSI support. More...
 
class  freebsd_smart_device
 Implement shared open/close routines with old functions. More...
 
class  freebsd_smart_interface
 Implement platform interface with old functions. More...
 

Functions

bool get_dev_names_cam (std::vector< std::string > &names, bool show_all)
 
int get_dev_names_ata (char ***names)
 
static int usbdevinfo (int f, int a, int rec, int busno, unsigned short &vendor_id, unsigned short &product_id, unsigned short &version)
 
static int usbdevlist (int busno, unsigned short &vendor_id, unsigned short &product_id, unsigned short &version)
 

Variables

unsigned char m_controller_type
 
unsigned char m_controller_port
 
static const char smartctl_examples []
 
static char done [USB_MAX_DEVICES]
 

Function Documentation

◆ get_dev_names_ata()

int os_freebsd::get_dev_names_ata ( char ***  names)

Definition at line 1888 of file os_freebsd.cpp.

◆ get_dev_names_cam()

bool os_freebsd::get_dev_names_cam ( std::vector< std::string > &  names,
bool  show_all 
)

Definition at line 1760 of file os_freebsd.cpp.

◆ usbdevinfo()

static int os_freebsd::usbdevinfo ( int  f,
int  a,
int  rec,
int  busno,
unsigned short &  vendor_id,
unsigned short &  product_id,
unsigned short &  version 
)
static

Definition at line 2165 of file os_freebsd.cpp.

◆ usbdevlist()

static int os_freebsd::usbdevlist ( int  busno,
unsigned short &  vendor_id,
unsigned short &  product_id,
unsigned short &  version 
)
static

Definition at line 2215 of file os_freebsd.cpp.

Variable Documentation

◆ done

char os_freebsd::done[USB_MAX_DEVICES]
static

Definition at line 2163 of file os_freebsd.cpp.

◆ m_controller_port

unsigned char os_freebsd::m_controller_port

Definition at line 180 of file os_freebsd.cpp.

◆ m_controller_type

unsigned char os_freebsd::m_controller_type

Definition at line 179 of file os_freebsd.cpp.

◆ smartctl_examples

const char os_freebsd::smartctl_examples[]
static
Initial value:
=
"=================================================== SMARTCTL EXAMPLES =====\n\n"
" smartctl -a /dev/ad0 (Prints all SMART information)\n\n"
" smartctl --smart=on --offlineauto=on --saveauto=on /dev/ad0\n"
" (Enables SMART on first disk)\n\n"
" smartctl -t long /dev/ad0 (Executes extended disk self-test)\n\n"
" smartctl --attributes --log=selftest --quietmode=errorsonly /dev/ad0\n"
" (Prints Self-Test & Attribute errors)\n"
" (Prints Self-Test & Attribute errors)\n\n"
" smartctl -a --device=3ware,2 /dev/twa0\n"
" smartctl -a --device=3ware,2 /dev/twe0\n"
" smartctl -a --device=3ware,2 /dev/tws0\n"
" (Prints all SMART information for ATA disk on\n"
" third port of first 3ware RAID controller)\n"
" smartctl -a --device=cciss,0 /dev/ciss0\n"
" (Prints all SMART information for first disk \n"
" on Common Interface for SCSI-3 Support driver)\n"
" smartctl -a --device=areca,3/1 /dev/arcmsr0\n"
" (Prints all SMART information for 3rd disk in the 1st enclosure \n"
" on first ARECA RAID controller)\n"
" smartctl -a --device=megaraid,3 /dev/mrsas0\n"
" (Prints all SMART information for 3rd disk\n"
" on first LSI RAID controller)\n"

Definition at line 183 of file os_freebsd.cpp.