smartmontools SVN Rev 5613
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.


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

Definition at line 360 of file os_qnxnto.cpp.

◆ ata_pass_thru()

static int ata_pass_thru ( int  fd,
struct cam_pass_thru *  pcpt 

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 

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"

Definition at line 63 of file os_qnxnto.cpp.

◆ net_dev_prefix

const char* net_dev_prefix = "/dev/"

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 $"
Definition: atacmds.h:16
Definition: os_qnxnto.h:13
Definition: scsicmds.h:22
Definition: utility.h:16

Definition at line 29 of file os_qnxnto.cpp.