Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
hpfall.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <string.h>
#include <stdint.h>
#include <errno.h>
#include <signal.h>
#include <sys/mman.h>
#include <sched.h>

Go to the source code of this file.

Functions

int set_unload_heads_path (char *device)
 
int valid_disk (void)
 
void write_int (char *path, int i)
 
void set_led (int on)
 
void protect (int seconds)
 
int on_ac (void)
 
int lid_open (void)
 
void ignore_me (void)
 
int main (int argc, char **argv)
 

Variables

char unload_heads_path [64]
 

Function Documentation

void ignore_me ( void  )

Definition at line 84 of file hpfall.c.

int lid_open ( void  )

Definition at line 79 of file hpfall.c.

int main ( int  argc,
char **  argv 
)

Definition at line 90 of file hpfall.c.

int on_ac ( void  )

Definition at line 74 of file hpfall.c.

void protect ( int  seconds)

Definition at line 69 of file hpfall.c.

void set_led ( int  on)

Definition at line 64 of file hpfall.c.

int set_unload_heads_path ( char device)

Definition at line 24 of file hpfall.c.

int valid_disk ( void  )

Definition at line 36 of file hpfall.c.

void write_int ( char path,
int  i 
)

Definition at line 48 of file hpfall.c.

Variable Documentation

char unload_heads_path[64]

Definition at line 22 of file hpfall.c.