RTEMS CPU Kit with SuperCore  4.11.3
Data Structures | Macros | Functions
compr.h File Reference
#include <linux/kernel.h>
#include <linux/vmalloc.h>
#include <linux/list.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/jffs2.h>
#include "jffs2_fs_i.h"
#include "jffs2_fs_sb.h"
#include "nodelist.h"
Include dependency graph for compr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  jffs2_compressor
 

Macros

#define JFFS2_RUBINMIPS_PRIORITY   10
 
#define JFFS2_DYNRUBIN_PRIORITY   20
 
#define JFFS2_LZARI_PRIORITY   30
 
#define JFFS2_RTIME_PRIORITY   50
 
#define JFFS2_ZLIB_PRIORITY   60
 
#define JFFS2_LZO_PRIORITY   80
 
#define JFFS2_RUBINMIPS_DISABLED   /* RUBINs will be used only */
 
#define JFFS2_DYNRUBIN_DISABLED   /* for decompression */
 
#define JFFS2_COMPR_MODE_NONE   0
 
#define JFFS2_COMPR_MODE_PRIORITY   1
 
#define JFFS2_COMPR_MODE_SIZE   2
 
#define JFFS2_COMPR_MODE_FAVOURLZO   3
 
#define JFFS2_COMPR_MODE_FORCELZO   4
 
#define JFFS2_COMPR_MODE_FORCEZLIB   5
 
#define FAVOUR_LZO_PERCENT   80
 
#define jffs2_free_comprbuf(x, y)   do { } while (0)
 

Functions

int jffs2_register_compressor (struct jffs2_compressor *comp)
 
int jffs2_unregister_compressor (struct jffs2_compressor *comp)
 
int jffs2_compressors_init (void)
 
int jffs2_compressors_exit (void)
 
uint16_t jffs2_compress (struct jffs2_sb_info *c, struct jffs2_inode_info *f, unsigned char *data_in, unsigned char **cpage_out, uint32_t *datalen, uint32_t *cdatalen)
 
int jffs2_decompress (struct jffs2_sb_info *c, struct jffs2_inode_info *f, uint16_t comprtype, unsigned char *cdata_in, unsigned char *data_out, uint32_t cdatalen, uint32_t datalen)