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

Go to the source code of this file.

Macros

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

Functions

static int ata_sense_data (void *sdata, int *error, int *key, int *asc, int *ascq)
 
static int ata_interpret_sense (struct cam_pass_thru *cpt, void *sense, int *status, int rcount)
 
static int ata_pass_thru (int fd, struct cam_pass_thru *pcpt)
 
void print_smartctl_examples ()
 
int guess_device_type (const char *dev_name)
 
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_c_cvsid
 
static const char * net_dev_prefix = "/dev/"
 
static const char * net_dev_ata_disk = "hd"
 

Macro Definition Documentation

◆ ARGUSED

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

Definition at line 35 of file os_qnxnto.cpp.

Function Documentation

◆ ata_command_interface()

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

Definition at line 131 of file os_qnxnto.cpp.

◆ ata_interpret_sense()

static int ata_interpret_sense ( struct cam_pass_thru *  cpt,
void *  sense,
int *  status,
int  rcount 
)
static

Definition at line 360 of file os_qnxnto.cpp.

◆ ata_pass_thru()

static int ata_pass_thru ( int  fd,
struct cam_pass_thru *  pcpt 
)
static

Definition at line 514 of file os_qnxnto.cpp.

◆ ata_sense_data()

static int ata_sense_data ( void *  sdata,
int *  error,
int *  key,
int *  asc,
int *  ascq 
)
static

Definition at line 338 of file os_qnxnto.cpp.

◆ deviceclose()

int deviceclose ( int  fd)

Definition at line 111 of file os_qnxnto.cpp.

◆ deviceopen()

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

Definition at line 101 of file os_qnxnto.cpp.

◆ do_scsi_cmnd_io()

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

Definition at line 329 of file os_qnxnto.cpp.

◆ guess_device_type()

int guess_device_type ( const char *  dev_name)

Definition at line 65 of file os_qnxnto.cpp.

◆ make_device_names()

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

Definition at line 89 of file os_qnxnto.cpp.

◆ print_smartctl_examples()

void print_smartctl_examples ( )

Definition at line 46 of file os_qnxnto.cpp.

Variable Documentation

◆ net_dev_ata_disk

const char* net_dev_ata_disk = "hd"
static

Definition at line 63 of file os_qnxnto.cpp.

◆ net_dev_prefix

const char* net_dev_prefix = "/dev/"
static

Definition at line 62 of file os_qnxnto.cpp.

◆ os_XXXX_c_cvsid

const char* os_XXXX_c_cvsid
Initial value:
="$Id: os_qnxnto.cpp 4842 2018-12-02 16:07:26Z chrfranke $"
#define ATACMDS_H_CVSID
Definition: atacmds.h:16
#define OS_QNXNTO_H_CVSID
Definition: os_qnxnto.h:13
#define SCSICMDS_H_CVSID
Definition: scsicmds.h:22
#define UTILITY_H_CVSID
Definition: utility.h:16

Definition at line 29 of file os_qnxnto.cpp.