smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
Defines | 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.

Defines

#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)
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)

Variables

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

Define 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 
) [static]

Definition at line 407 of file os_qnxnto.cpp.

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

Definition at line 561 of file os_qnxnto.cpp.

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

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 ( ) [static]

Definition at line 47 of file os_qnxnto.cpp.


Variable Documentation

const char* net_dev_ata_disk = "hd" [static]

Definition at line 108 of file os_qnxnto.cpp.

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

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 $" 
ATACMDS_H_CVSID CONFIG_H_CVSID INT64_H_CVSID OS_QNXNTO_H_CVSID SCSICMDS_H_CVSID UTILITY_H_CVSID

Definition at line 22 of file os_qnxnto.cpp.