#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>
Go to the source code of this file.
|
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) |
|
◆ addpath()
static int addpath |
( |
const char * |
path, |
|
|
struct pathlist * |
res |
|
) |
| |
|
static |
◆ ata_command_interface()
int ata_command_interface |
( |
int |
device, |
|
|
smart_command_set |
command, |
|
|
int |
select, |
|
|
char * |
data |
|
) |
| |
◆ deviceclose()
int deviceclose |
( |
int |
fd | ) |
|
◆ deviceopen()
int deviceopen |
( |
const char * |
pathname, |
|
|
char * |
type |
|
) |
| |
◆ do_scsi_cmnd_io()
int do_scsi_cmnd_io |
( |
int |
fd, |
|
|
struct scsi_cmnd_io * |
iop, |
|
|
int |
report |
|
) |
| |
◆ grokdir()
static int grokdir |
( |
const char * |
dir, |
|
|
struct pathlist * |
res, |
|
|
int |
testfunconst char * |
|
) |
| |
|
static |
◆ guess_device_type()
int guess_device_type |
( |
const char * |
dev_name | ) |
|
◆ isatadev()
static int isatadev |
( |
const char * |
path | ) |
|
|
static |
◆ isdevtype()
static int isdevtype |
( |
const char * |
dev_name, |
|
|
const char * |
table[], |
|
|
int |
tsize |
|
) |
| |
|
static |
◆ isscsidev()
static int isscsidev |
( |
const char * |
path | ) |
|
|
static |
◆ make_device_names()
int make_device_names |
( |
char *** |
devlist, |
|
|
const char * |
name |
|
) |
| |
◆ print_smartctl_examples()
void print_smartctl_examples |
( |
| ) |
|
◆ atadrvrs
◆ os_solaris_cpp_cvsid
const char* os_solaris_cpp_cvsid = "$Id: os_solaris.cpp 5393 2022-05-29 05:08:10Z dpgilbert $" |
◆ uscsidrvrs
Initial value:= {
"sd",
"ssd",
"disk",
"st"
}
Definition at line 45 of file os_solaris.cpp.