Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dynamic_debug.h File Reference
#include <linux/string.h>
#include <linux/errno.h>

Go to the source code of this file.

Data Structures

struct  _ddebug
 

Macros

#define _DPRINTK_FLAGS_NONE   0
 
#define _DPRINTK_FLAGS_PRINT   (1<<0) /* printk() a message using the format */
 
#define _DPRINTK_FLAGS_INCL_MODNAME   (1<<1)
 
#define _DPRINTK_FLAGS_INCL_FUNCNAME   (1<<2)
 
#define _DPRINTK_FLAGS_INCL_LINENO   (1<<3)
 
#define _DPRINTK_FLAGS_INCL_TID   (1<<4)
 
#define _DPRINTK_FLAGS_DEFAULT   0
 
#define dynamic_pr_debug(fmt,...)   do { if (0) printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); } while (0)
 
#define dynamic_dev_dbg(dev, fmt,...)   do { if (0) dev_printk(KERN_DEBUG, dev, fmt, ##__VA_ARGS__); } while (0)
 

Functions

struct _ddebug __attribute__ ((aligned(8)))
 Packet vector entry.
 
int ddebug_add_module (struct _ddebug *tab, unsigned int n, const char *modname)
 

Variables

const charmodname
 
const charfunction
 
const charfilename
 
const charformat
 
unsigned int lineno
 
unsigned int flags
 

Macro Definition Documentation

#define _DPRINTK_FLAGS_DEFAULT   0

Definition at line 60 of file dynamic_debug.h.

#define _DPRINTK_FLAGS_INCL_FUNCNAME   (1<<2)

Definition at line 54 of file dynamic_debug.h.

#define _DPRINTK_FLAGS_INCL_LINENO   (1<<3)

Definition at line 55 of file dynamic_debug.h.

#define _DPRINTK_FLAGS_INCL_MODNAME   (1<<1)

Definition at line 53 of file dynamic_debug.h.

#define _DPRINTK_FLAGS_INCL_TID   (1<<4)

Definition at line 56 of file dynamic_debug.h.

#define _DPRINTK_FLAGS_NONE   0

Definition at line 51 of file dynamic_debug.h.

#define _DPRINTK_FLAGS_PRINT   (1<<0) /* printk() a message using the format */

Definition at line 52 of file dynamic_debug.h.

#define dynamic_dev_dbg (   dev,
  fmt,
  ... 
)    do { if (0) dev_printk(KERN_DEBUG, dev, fmt, ##__VA_ARGS__); } while (0)

Definition at line 122 of file dynamic_debug.h.

#define dynamic_pr_debug (   fmt,
  ... 
)    do { if (0) printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); } while (0)

Definition at line 120 of file dynamic_debug.h.

Function Documentation

Packet vector entry.

This data structure is used with netio_send_packet_vector() to send multiple packets with one NetIO call. The structure should be initialized by calling netio_pkt_vector_set(), rather than by setting the fields directly.

This structure is guaranteed to be a power of two in size, no bigger than one L2 cache line, and to be aligned modulo its size.

Reserved for use by the user application. When initialized with the netio_set_pkt_vector_entry() function, this field is guaranteed to be visible to readers only after all other fields are already visible. This way it can be used as a valid flag or generation counter.

Low 8 bits of the packet address to send. The high bits are acquired from the 'handle' field.

Number of bytes to transmit.

The raw handle from a netio_pkt_t. If this is NETIO_PKT_HANDLE_NONE, this vector entry will be skipped and no packet will be transmitted.

Definition at line 9 of file extable.c.

int ddebug_add_module ( struct _ddebug tab,
unsigned int  n,
const char modname 
)

Definition at line 872 of file dynamic_debug.c.

Variable Documentation

mod_firmware_load - load sound driver firmware

: return for the buffer.

Load the firmware for a sound module (up to 128K) into a buffer. The buffer is returned in *fp. It is allocated with vmalloc so is virtually linear and not DMAable. The caller should free it with vfree when finished.

The length of the buffer is returned on a successful load, the value zero on a failure.

Caution: This API is not recommended. Firmware should be loaded via request_firmware.

Definition at line 43 of file dynamic_debug.h.

unsigned int flags

Definition at line 62 of file dynamic_debug.h.

Definition at line 44 of file dynamic_debug.h.

const char* function

Definition at line 42 of file dynamic_debug.h.

unsigned int lineno

Definition at line 45 of file dynamic_debug.h.

const char* modname

Definition at line 41 of file dynamic_debug.h.