|
smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
|
#include <stdbool.h>#include <errno.h>#include <unistd.h>#include <mach/mach.h>#include <mach/mach_error.h>#include <mach/mach_init.h>#include <IOKit/IOCFPlugIn.h>#include <IOKit/IOKitLib.h>#include <IOKit/IOReturn.h>#include <IOKit/IOBSD.h>#include <IOKit/storage/IOBlockStorageDevice.h>#include <IOKit/storage/IOStorageDeviceCharacteristics.h>#include <IOKit/storage/IOMedia.h>#include <IOKit/storage/ata/IOATAStorageDefines.h>#include <IOKit/storage/ata/ATASMARTLib.h>#include <CoreFoundation/CoreFoundation.h>#include "config.h"#include "int64.h"#include "atacmds.h"#include "scsicmds.h"#include "utility.h"#include "os_darwin.h"
Go to the source code of this file.
Defines | |
| #define | kIOATABlockStorageDeviceClass "IOATABlockStorageDevice" |
Functions | |
| void | print_smartctl_examples () |
| int | guess_device_type (const char *) |
| static bool | is_smart_capable (io_object_t dev) |
| 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, struct scsi_cmnd_io *, int) |
Variables | |
| const char * | os_XXXX_c_cvsid |
| struct { | |
| io_object_t ioob | |
| IOCFPlugInInterface ** plugin | |
| IOATASMARTInterface ** smartIf | |
| } | devices [20] |
| #define kIOATABlockStorageDeviceClass "IOATABlockStorageDevice" |
Definition at line 36 of file os_darwin.cpp.
| int ata_command_interface | ( | int | fd, |
| smart_command_set | command, | ||
| int | select, | ||
| char * | data | ||
| ) |
Definition at line 330 of file os_darwin.cpp.
| int deviceclose | ( | int | fd | ) |
Definition at line 293 of file os_darwin.cpp.
| int deviceopen | ( | const char * | pathname, |
| char * | type | ||
| ) |
Definition at line 204 of file os_darwin.cpp.
| int do_scsi_cmnd_io | ( | int | , |
| struct scsi_cmnd_io * | , | ||
| int | |||
| ) |
Definition at line 423 of file os_darwin.cpp.
| int guess_device_type | ( | const char * | ) |
Definition at line 75 of file os_darwin.cpp.
| static bool is_smart_capable | ( | io_object_t | dev | ) | [static] |
Definition at line 81 of file os_darwin.cpp.
| int make_device_names | ( | char *** | devlist, |
| const char * | name | ||
| ) |
Definition at line 126 of file os_darwin.cpp.
| void print_smartctl_examples | ( | ) |
Definition at line 51 of file os_darwin.cpp.
struct { ... } devices[20] [static] |
| io_object_t ioob |
Definition at line 189 of file os_darwin.cpp.
| const char* os_XXXX_c_cvsid |
"$Id: os_darwin.cpp 3805 2013-03-29 19:54:18Z chrfranke $" ATACMDS_H_CVSID CONFIG_H_CVSID INT64_H_CVSID OS_DARWIN_H_CVSID SCSICMDS_H_CVSID UTILITY_H_CVSID
Definition at line 47 of file os_darwin.cpp.
| IOCFPlugInInterface** plugin |
Definition at line 190 of file os_darwin.cpp.
| IOATASMARTInterface** smartIf |
Definition at line 191 of file os_darwin.cpp.
1.7.4