hdparm  9.60
About: hdparm - get/set ATA/SATA drive parameters under Linux.
  Fossies Dox: hdparm-9.60.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

apt.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <linux/cdrom.h>
#include <scsi/scsi.h>
#include <scsi/sg.h>
#include <sys/types.h>
#include <errno.h>
#include "hdparm.h"
#include "sgio.h"
Include dependency graph for apt.c:

Go to the source code of this file.


int apt_detect (int fd, int verbose)
int apt_is_apt (void)
int apt_sg16 (int fd, int rw, int dma, struct ata_tf *tf, void *data, unsigned int data_bytes, unsigned int timeout_secs)

Function Documentation

◆ apt_detect()

int apt_detect ( int  fd,
int  verbose 

Definition at line 275 of file apt.c.

References verbose.

Referenced by process_dev().

◆ apt_is_apt()

int apt_is_apt ( void  )

Definition at line 282 of file apt.c.

◆ apt_sg16()

int apt_sg16 ( int  fd,
int  rw,
int  dma,
struct ata_tf tf,
void *  data,
unsigned int  data_bytes,
unsigned int  timeout_secs 

Definition at line 287 of file apt.c.

References dma.