smartmontools  SVN Rev 4335
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, MAX_MSG, BAD_SMART, 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
 
static const char * net_dev_prefix = "/dev/r"
 
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 
MAX_MSG 
BAD_SMART 
MAX_MSG 

Definition at line 32 of file os_netbsd.cpp.

Function Documentation

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

Definition at line 175 of file os_netbsd.cpp.

int deviceclose ( int  fd)

Definition at line 169 of file os_netbsd.cpp.

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

Definition at line 155 of file os_netbsd.cpp.

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

Definition at line 344 of file os_netbsd.cpp.

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

Definition at line 91 of file os_netbsd.cpp.

int guess_device_type ( const char *  dev_name)

Definition at line 64 of file os_netbsd.cpp.

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

Definition at line 144 of file os_netbsd.cpp.

void print_smartctl_examples ( )

Definition at line 413 of file os_netbsd.cpp.

void printwarning ( int  msgNo,
const char *  extra 
)

Definition at line 38 of file os_netbsd.cpp.

Variable Documentation

const char* net_dev_ata_disk = "wd"
static

Definition at line 58 of file os_netbsd.cpp.

const char* net_dev_prefix = "/dev/r"
static

Definition at line 57 of file os_netbsd.cpp.

const char* net_dev_scsi_disk = "sd"
static

Definition at line 59 of file os_netbsd.cpp.

const char* net_dev_scsi_tape = "enrst"
static

Definition at line 60 of file os_netbsd.cpp.

const char* os_netbsd_cpp_cvsid
Initial value:
= "$Id: os_netbsd.cpp 4320 2016-05-10 13:39:19Z chrfranke $"
#define OS_NETBSD_H_CVSID
Definition: os_netbsd.h:27

Definition at line 29 of file os_netbsd.cpp.