Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
fault-inject.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/random.h>
#include <linux/sched.h>
#include <linux/stat.h>
#include <linux/types.h>
#include <linux/fs.h>
#include <linux/export.h>
#include <linux/interrupt.h>
#include <linux/stacktrace.h>
#include <linux/fault-inject.h>

Go to the source code of this file.

Macros

#define atomic_dec_not_zero(v)   atomic_add_unless((v), -1, 0)
 
#define MAX_STACK_TRACE_DEPTH   32
 

Functions

int setup_fault_attr (struct fault_attr *attr, char *str)
 
 EXPORT_SYMBOL_GPL (setup_fault_attr)
 
bool should_fail (struct fault_attr *attr, ssize_t size)
 
 EXPORT_SYMBOL_GPL (should_fail)
 

Macro Definition Documentation

#define atomic_dec_not_zero (   v)    atomic_add_unless((v), -1, 0)

Definition at line 49 of file fault-inject.c.

#define MAX_STACK_TRACE_DEPTH   32

Definition at line 56 of file fault-inject.c.

Function Documentation

EXPORT_SYMBOL_GPL ( setup_fault_attr  )
EXPORT_SYMBOL_GPL ( should_fail  )
int setup_fault_attr ( struct fault_attr *  attr,
char str 
)

Definition at line 17 of file fault-inject.c.

bool should_fail ( struct fault_attr *  attr,
ssize_t  size 
)

Definition at line 102 of file fault-inject.c.