smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
Enumerations | Functions | Variables
os_netbsd.cpp File Reference
#include "config.h"
#include "int64.h"
#include "atacmds.h"
#include "scsicmds.h"
#include "utility.h"
#include "os_netbsd.h"
#include <errno.h>
#include <unistd.h>
Include dependency graph for os_netbsd.cpp:

Go to the source code of this file.

Enumerations

enum  warnings {
  BAD_SMART, NO_3WARE, NO_ARECA, MAX_MSG,
  BAD_SMART, NO_3WARE, NO_ARECA, MAX_MSG
}

Functions

void printwarning (int msgNo, const char *extra)
int guess_device_type (const char *dev_name)
int get_dev_names (char ***names, const char *prefix)
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)
void print_smartctl_examples ()

Variables

const char * os_netbsd_cpp_cvsid
long long bytes
static const char * net_dev_prefix = "/dev/"
static const char * net_dev_ata_disk = "wd"
static const char * net_dev_scsi_disk = "sd"
static const char * net_dev_scsi_tape = "enrst"

Enumeration Type Documentation

enum warnings
Enumerator:
BAD_SMART 
NO_3WARE 
NO_ARECA 
MAX_MSG 
BAD_SMART 
NO_3WARE 
NO_ARECA 
MAX_MSG 

Definition at line 35 of file os_netbsd.cpp.


Function Documentation

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

Definition at line 173 of file os_netbsd.cpp.

int deviceclose ( int  fd)

Definition at line 167 of file os_netbsd.cpp.

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

Definition at line 153 of file os_netbsd.cpp.

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

Definition at line 341 of file os_netbsd.cpp.

int get_dev_names ( char ***  names,
const char *  prefix 
)

Definition at line 94 of file os_netbsd.cpp.

int guess_device_type ( const char *  dev_name)

Definition at line 67 of file os_netbsd.cpp.

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

Definition at line 142 of file os_netbsd.cpp.

void print_smartctl_examples ( )

Definition at line 410 of file os_netbsd.cpp.

void printwarning ( int  msgNo,
const char *  extra 
)

Definition at line 41 of file os_netbsd.cpp.


Variable Documentation

long long bytes

Definition at line 124 of file os_freebsd.cpp.

const char* net_dev_ata_disk = "wd" [static]

Definition at line 61 of file os_netbsd.cpp.

const char* net_dev_prefix = "/dev/" [static]

Definition at line 60 of file os_netbsd.cpp.

const char* net_dev_scsi_disk = "sd" [static]

Definition at line 62 of file os_netbsd.cpp.

const char* net_dev_scsi_tape = "enrst" [static]

Definition at line 63 of file os_netbsd.cpp.

const char* os_netbsd_cpp_cvsid
Initial value:
"$Id: os_netbsd.cpp 3806 2013-03-29 20:17:03Z chrfranke $"
  OS_NETBSD_H_CVSID

Definition at line 29 of file os_netbsd.cpp.