| Top |
gboolean udisks_ata_send_command_sync (gint fd,gint timeout_msec,UDisksAtaCommandProtocol protocol,UDisksAtaCommandInput *input,UDisksAtaCommandOutput *output,GError **error);
Sends a command to an ATA device. Blocks the calling thread while the command is pending.
fd |
A file descriptor for a ATA device. |
|
timeout_msec |
Timeout in milli-seconds for the command. Use -1 for the default (5 seconds) timeout and |
|
protocol |
The direction of the command. |
|
input |
The input for the command. |
|
output |
The output for the command. |
|
error |
Return location for error or |
typedef struct {
guint8 command;
guint8 feature;
guint8 count;
guint8 device;
guint32 lba;
gsize buffer_size;
guchar *buffer;
} UDisksAtaCommandInput;
Struct used for input data when sending ATA commands.
Command |
||
Feature |
||
Count |
||
Device |
||
LBA |
||
Size of the |
||
Data to send to device or |
typedef struct {
guint8 error;
guint8 count;
guint8 device;
guint8 status;
guint32 lba;
gsize buffer_size;
guchar *buffer;
} UDisksAtaCommandOutput;
Struct used for output data when sending ATA commands.
Error |
||
Count |
||
Device |
||
Status |
||
LBA |
||
Size of the |
||
Pointer to where to receive data from the device or |