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.