smartmontools  SVN Rev 4556
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 "int64.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.


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


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)
static void unsupported ()
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)


const char * os_XXXX_c_cvsid
static const char * net_dev_prefix = "/dev/"
static const char * net_dev_ata_disk = "hd"

Macro Definition Documentation

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

Definition at line 28 of file os_qnxnto.cpp.

Function Documentation

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

Definition at line 177 of file os_qnxnto.cpp.

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

Definition at line 407 of file os_qnxnto.cpp.

static int ata_pass_thru ( int  fd,
struct cam_pass_thru *  pcpt 

Definition at line 561 of file os_qnxnto.cpp.

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

Definition at line 385 of file os_qnxnto.cpp.

int deviceclose ( int  fd)

Definition at line 157 of file os_qnxnto.cpp.

int deviceopen ( const char *  pathname,
char *  type 

Definition at line 147 of file os_qnxnto.cpp.

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

Definition at line 375 of file os_qnxnto.cpp.

int guess_device_type ( const char *  dev_name)

Definition at line 110 of file os_qnxnto.cpp.

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

Definition at line 134 of file os_qnxnto.cpp.

void print_smartctl_examples ( )

Definition at line 78 of file os_qnxnto.cpp.

static void unsupported ( )

Definition at line 47 of file os_qnxnto.cpp.

Variable Documentation

const char* net_dev_ata_disk = "hd"

Definition at line 108 of file os_qnxnto.cpp.

const char* net_dev_prefix = "/dev/"

Definition at line 107 of file os_qnxnto.cpp.

const char* os_XXXX_c_cvsid
Initial value:
="$Id: os_qnxnto.cpp 3806 2013-03-29 20:17:03Z chrfranke $"
Definition: atacmds.h:28
#define INT64_H_CVSID
Definition: int64.h:23
Definition: scsicmds.h:33
Definition: os_qnxnto.h:26
Definition: utility.h:28

Definition at line 22 of file os_qnxnto.cpp.