Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ffs-test.c File Reference
#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <tools/le_byteshift.h>
#include "../../include/linux/usb/functionfs.h"

Go to the source code of this file.

Data Structures

struct  thread
 

Macros

#define _BSD_SOURCE   /* for endian.h */
 
#define cpu_to_le16(x)   htole16(x)
 
#define cpu_to_le32(x)   htole32(x)
 
#define le32_to_cpu(x)   le32toh(x)
 
#define le16_to_cpu(x)   le16toh(x)
 
#define die(...)   (_msg(2, __VA_ARGS__), exit(1))
 
#define err(...)   _msg(3, __VA_ARGS__)
 
#define warn(...)   _msg(4, __VA_ARGS__)
 
#define note(...)   _msg(5, __VA_ARGS__)
 
#define info(...)   _msg(6, __VA_ARGS__)
 
#define debug(...)   _msg(7, __VA_ARGS__)
 
#define die_on(cond,...)
 
#define STR_INTERFACE_   "Source/Sink"
 
#define STR_INTERFACE   strings.lang0.str1
 

Enumerations

enum  pattern { PAT_ZERO, PAT_SEQ, PAT_PIPE }
 

Functions

int main (void)
 

Macro Definition Documentation

#define _BSD_SOURCE   /* for endian.h */

Definition at line 25 of file ffs-test.c.

#define cpu_to_le16 (   x)    htole16(x)

Definition at line 46 of file ffs-test.c.

#define cpu_to_le32 (   x)    htole32(x)

Definition at line 47 of file ffs-test.c.

#define debug (   ...)    _msg(7, __VA_ARGS__)

Definition at line 98 of file ffs-test.c.

#define die (   ...)    (_msg(2, __VA_ARGS__), exit(1))

Definition at line 93 of file ffs-test.c.

#define die_on (   cond,
  ... 
)
Value:
do { \
if (cond) \
die(__VA_ARGS__); \
} while (0)

Definition at line 100 of file ffs-test.c.

#define err (   ...)    _msg(3, __VA_ARGS__)

Definition at line 94 of file ffs-test.c.

#define info (   ...)    _msg(6, __VA_ARGS__)

Definition at line 97 of file ffs-test.c.

#define le16_to_cpu (   x)    le16toh(x)

Definition at line 49 of file ffs-test.c.

#define le32_to_cpu (   x)    le32toh(x)

Definition at line 48 of file ffs-test.c.

#define note (   ...)    _msg(5, __VA_ARGS__)

Definition at line 96 of file ffs-test.c.

#define STR_INTERFACE   strings.lang0.str1

Definition at line 193 of file ffs-test.c.

#define STR_INTERFACE_   "Source/Sink"

Definition at line 172 of file ffs-test.c.

#define warn (   ...)    _msg(4, __VA_ARGS__)

Definition at line 95 of file ffs-test.c.

Enumeration Type Documentation

enum pattern
Enumerator:
PAT_ZERO 
PAT_SEQ 
PAT_PIPE 

Definition at line 361 of file ffs-test.c.

Function Documentation

int main ( void  )

Definition at line 506 of file ffs-test.c.

Variable Documentation

Definition at line 177 of file ffs-test.c.

Definition at line 109 of file ffs-test.c.

Definition at line 111 of file ffs-test.c.

Definition at line 112 of file ffs-test.c.

Definition at line 113 of file ffs-test.c.

Definition at line 178 of file ffs-test.c.