smartmontools SVN Rev 5611
Utility to control and monitor storage systems with "S.M.A.R.T."
Classes | Functions | Variables
os_solaris.cpp File Reference
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <dirent.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "config.h"
#include "atacmds.h"
#include "scsicmds.h"
#include "utility.h"
#include <errno.h>
#include <sys/scsi/generic/commands.h>
#include <sys/scsi/generic/status.h>
#include <sys/scsi/impl/types.h>
#include <sys/scsi/impl/uscsi.h>
Include dependency graph for os_solaris.cpp:

Go to the source code of this file.

Classes

struct  pathlist
 

Functions

void print_smartctl_examples ()
 
static int isdevtype (const char *dev_name, const char *table[], int tsize)
 
static int isscsidev (const char *path)
 
static int isatadev (const char *path)
 
int guess_device_type (const char *dev_name)
 
static int addpath (const char *path, struct pathlist *res)
 
static int grokdir (const char *dir, struct pathlist *res, int testfun(const char *))
 
int make_device_names (char ***devlist, const char *name)
 
int deviceopen (const char *pathname, char *type)
 
int deviceclose (int fd)
 
int ata_command_interface (int, smart_command_set, int, char *)
 
int do_scsi_cmnd_io (int fd, struct scsi_cmnd_io *iop, int report)
 

Variables

const char * os_solaris_cpp_cvsid = "$Id: os_solaris.cpp 5393 2022-05-29 05:08:10Z dpgilbert $"
 
static const char * uscsidrvrs []
 
static const char * atadrvrs []
 

Function Documentation

◆ addpath()

static int addpath ( const char *  path,
struct pathlist res 
)
static

Definition at line 109 of file os_solaris.cpp.

◆ ata_command_interface()

int ata_command_interface ( int  device,
smart_command_set  command,
int  select,
char *  data 
)

Definition at line 220 of file os_solaris.cpp.

◆ deviceclose()

int deviceclose ( int  fd)

Definition at line 215 of file os_solaris.cpp.

◆ deviceopen()

int deviceopen ( const char *  pathname,
char *  type 
)

Definition at line 205 of file os_solaris.cpp.

◆ do_scsi_cmnd_io()

int do_scsi_cmnd_io ( int  fd,
struct scsi_cmnd_io iop,
int  report 
)

Definition at line 234 of file os_solaris.cpp.

◆ grokdir()

static int grokdir ( const char *  dir,
struct pathlist res,
int   testfunconst char * 
)
static

Definition at line 123 of file os_solaris.cpp.

◆ guess_device_type()

int guess_device_type ( const char *  dev_name)

Definition at line 93 of file os_solaris.cpp.

◆ isatadev()

static int isatadev ( const char *  path)
static

Definition at line 87 of file os_solaris.cpp.

◆ isdevtype()

static int isdevtype ( const char *  dev_name,
const char *  table[],
int  tsize 
)
static

Definition at line 58 of file os_solaris.cpp.

◆ isscsidev()

static int isscsidev ( const char *  path)
static

Definition at line 81 of file os_solaris.cpp.

◆ make_device_names()

int make_device_names ( char ***  devlist,
const char *  name 
)

Definition at line 176 of file os_solaris.cpp.

◆ print_smartctl_examples()

void print_smartctl_examples ( )

Definition at line 33 of file os_solaris.cpp.

Variable Documentation

◆ atadrvrs

const char* atadrvrs[]
static
Initial value:
= {
"cmdk",
"dad",
}

Definition at line 52 of file os_solaris.cpp.

◆ os_solaris_cpp_cvsid

const char* os_solaris_cpp_cvsid = "$Id: os_solaris.cpp 5393 2022-05-29 05:08:10Z dpgilbert $"

Definition at line 30 of file os_solaris.cpp.

◆ uscsidrvrs

const char* uscsidrvrs[]
static
Initial value:
= {
"sd",
"ssd",
"disk",
"st"
}

Definition at line 45 of file os_solaris.cpp.