Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ft1000_proc.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/proc_fs.h>
#include <linux/string.h>
#include <linux/vmalloc.h>
#include <linux/netdevice.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include "ft1000.h"

Go to the source code of this file.

Macros

#define FT1000_PROC   "ft1000"
 
#define MAX_FILE_LEN   255
 
#define PUTM_TO_PAGE(len, page, args...)   len += snprintf(page+len, PAGE_SIZE - len, args)
 
#define PUTX_TO_PAGE(len, page, message, size, var)
 
#define PUTD_TO_PAGE(len, page, message, size, var)
 

Functions

void ft1000InitProc (struct net_device *dev)
 
void ft1000CleanupProc (struct net_device *dev)
 

Macro Definition Documentation

#define FT1000_PROC   "ft1000"

Definition at line 29 of file ft1000_proc.c.

#define MAX_FILE_LEN   255

Definition at line 30 of file ft1000_proc.c.

#define PUTD_TO_PAGE (   len,
  page,
  message,
  size,
  var 
)
Value:
len += snprintf(page+len, PAGE_SIZE - len, message); \
for(i = 0; i < (size - 1); i++) { \
len += snprintf(page+len, PAGE_SIZE - len, "%d.", var[i]); \
} \
len += snprintf(page+len, PAGE_SIZE - len, "%d\n", var[i])

Definition at line 42 of file ft1000_proc.c.

#define PUTM_TO_PAGE (   len,
  page,
  args... 
)    len += snprintf(page+len, PAGE_SIZE - len, args)

Definition at line 32 of file ft1000_proc.c.

#define PUTX_TO_PAGE (   len,
  page,
  message,
  size,
  var 
)
Value:
len += snprintf(page+len, PAGE_SIZE - len, message); \
for(i = 0; i < (size - 1); i++) { \
len += snprintf(page+len, PAGE_SIZE - len, "%02x:", var[i]); \
} \
len += snprintf(page+len, PAGE_SIZE - len, "%02x\n", var[i])

Definition at line 35 of file ft1000_proc.c.

Function Documentation

void ft1000CleanupProc ( struct net_device dev)

Definition at line 204 of file ft1000_proc.c.

void ft1000InitProc ( struct net_device dev)

Definition at line 191 of file ft1000_proc.c.