Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
lzo1x_decompress.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <asm/unaligned.h>
#include <linux/lzo.h>
#include "lzodefs.h"

Go to the source code of this file.

Macros

#define HAVE_IP(x, ip_end, ip)   ((size_t)(ip_end - ip) < (x))
 
#define HAVE_OP(x, op_end, op)   ((size_t)(op_end - op) < (x))
 
#define HAVE_LB(m_pos, out, op)   (m_pos < out || m_pos >= op)
 
#define COPY4(dst, src)   put_unaligned(get_unaligned((const u32 *)(src)), (u32 *)(dst))
 

Functions

int lzo1x_decompress_safe (const unsigned char *in, size_t in_len, unsigned char *out, size_t *out_len)
 
 EXPORT_SYMBOL_GPL (lzo1x_decompress_safe)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("LZO1X Decompressor")
 

Macro Definition Documentation

#define COPY4 (   dst,
  src 
)    put_unaligned(get_unaligned((const u32 *)(src)), (u32 *)(dst))

Definition at line 27 of file lzo1x_decompress.c.

#define HAVE_IP (   x,
  ip_end,
  ip 
)    ((size_t)(ip_end - ip) < (x))

Definition at line 23 of file lzo1x_decompress.c.

#define HAVE_LB (   m_pos,
  out,
  op 
)    (m_pos < out || m_pos >= op)

Definition at line 25 of file lzo1x_decompress.c.

#define HAVE_OP (   x,
  op_end,
  op 
)    ((size_t)(op_end - op) < (x))

Definition at line 24 of file lzo1x_decompress.c.

Function Documentation

EXPORT_SYMBOL_GPL ( lzo1x_decompress_safe  )
int lzo1x_decompress_safe ( const unsigned char in,
size_t  in_len,
unsigned char out,
size_t out_len 
)

Definition at line 30 of file lzo1x_decompress.c.

MODULE_DESCRIPTION ( "LZO1X Decompressor"  )
MODULE_LICENSE ( "GPL"  )