smartmontools  SVN Rev 5260
Utility to control and monitor storage systems with "S.M.A.R.T."
Classes | Macros | 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 <sys/param.h>
#include "config.h"
#include "atacmds.h"
#include "scsicmds.h"
#include "utility.h"
#include "os_solaris.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
 

Macros

#define ARGUSED(x)   ((void)(x))
 

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 fd, smart_command_set command, int select, char *data)
 
int do_scsi_cmnd_io (int fd, struct scsi_cmnd_io *iop, int report)
 

Variables

const char * os_XXXX_cpp_cvsid
 
static const char * uscsidrvrs []
 
static const char * atadrvrs []
 

Macro Definition Documentation

◆ ARGUSED

#define ARGUSED (   x)    ((void)(x))

Definition at line 30 of file os_solaris.cpp.

Function Documentation

◆ addpath()

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

Definition at line 112 of file os_solaris.cpp.

◆ ata_command_interface()

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

Definition at line 236 of file os_solaris.cpp.

◆ deviceclose()

int deviceclose ( int  fd)

Definition at line 218 of file os_solaris.cpp.

◆ deviceopen()

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

Definition at line 208 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 299 of file os_solaris.cpp.

◆ grokdir()

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

Definition at line 126 of file os_solaris.cpp.

◆ guess_device_type()

int guess_device_type ( const char *  dev_name)

Definition at line 96 of file os_solaris.cpp.

◆ isatadev()

static int isatadev ( const char *  path)
static

Definition at line 90 of file os_solaris.cpp.

◆ isdevtype()

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

Definition at line 61 of file os_solaris.cpp.

◆ isscsidev()

static int isscsidev ( const char *  path)
static

Definition at line 84 of file os_solaris.cpp.

◆ make_device_names()

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

Definition at line 179 of file os_solaris.cpp.

◆ print_smartctl_examples()

void print_smartctl_examples ( )

Definition at line 36 of file os_solaris.cpp.

Variable Documentation

◆ atadrvrs

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

Definition at line 55 of file os_solaris.cpp.

◆ os_XXXX_cpp_cvsid

const char* os_XXXX_cpp_cvsid
Initial value:
= "$Id: os_solaris.cpp 5065 2020-06-20 13:47:36Z chrfranke $"
#define OS_SOLARIS_H_CVSID
Definition: os_solaris.h:15

Definition at line 32 of file os_solaris.cpp.

◆ uscsidrvrs

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

Definition at line 48 of file os_solaris.cpp.