RTEMS CPU Kit with SuperCore
4.11.3
|
#include <asm/atomic.h>
#include <asm/bug.h>
#include <linux/compiler.h>
#include <linux/list.h>
#include <linux/pagemap.h>
#include <linux/stat.h>
#include <linux/types.h>
#include <sys/uio.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <time.h>
#include <rtems/jffs2.h>
Go to the source code of this file.
Data Structures | |
struct | _inode |
struct | super_block |
Macros | |
#define | CONFIG_JFFS2_RTIME |
#define | CONFIG_JFFS2_ZLIB |
#define | jffs2_can_mark_obsolete(c) (1) |
#define | JFFS2_INODE_INFO(i) (&(i)->jffs2_i) |
#define | OFNI_EDONI_2SFFJ(f) ((struct _inode *) ( ((char *)f) - ((char *)(&((struct _inode *)NULL)->jffs2_i)) ) ) |
#define | ITIME(sec) (sec) |
#define | I_SEC(tv) (tv) |
#define | JFFS2_F_I_SIZE(f) (OFNI_EDONI_2SFFJ(f)->i_size) |
#define | JFFS2_F_I_MODE(f) (OFNI_EDONI_2SFFJ(f)->i_mode) |
#define | JFFS2_F_I_UID(f) (OFNI_EDONI_2SFFJ(f)->i_uid) |
#define | JFFS2_F_I_GID(f) (OFNI_EDONI_2SFFJ(f)->i_gid) |
#define | JFFS2_F_I_CTIME(f) (OFNI_EDONI_2SFFJ(f)->i_ctime) |
#define | JFFS2_F_I_MTIME(f) (OFNI_EDONI_2SFFJ(f)->i_mtime) |
#define | JFFS2_F_I_ATIME(f) (OFNI_EDONI_2SFFJ(f)->i_atime) |
#define | get_seconds() time(NULL) |
#define | JFFS2_SB_INFO(sb) (&(sb)->jffs2_sb) |
#define | OFNI_BS_2SFFJ(c) ((struct super_block *) ( ((char *)c) - ((char *)(&((struct super_block *)NULL)->jffs2_sb)) ) ) |
#define | sleep_on_spinunlock(wq, sl) spin_unlock(sl) |
#define | EBADFD 32767 |
#define | os_to_jffs2_mode(x) jffs2_from_os_mode(x) |
#define | SECTOR_ADDR(x) ( ((unsigned long)(x) & ~(c->sector_size-1)) ) |
#define | jffs2_can_mark_obsolete(c) (1) |
#define | jffs2_is_writebuffered(c) (0) |
#define | jffs2_cleanmarker_oob(c) (0) |
#define | jffs2_write_nand_cleanmarker(c, jeb) (-EIO) |
#define | jffs2_flush_wbuf_pad(c) (c=c) |
#define | jffs2_flush_wbuf_gc(c, i) ({ (void)(c), (void) i, 0; }) |
#define | jffs2_nand_read_failcnt(c, jeb) do { ; } while(0) |
#define | jffs2_write_nand_badblock(c, jeb, p) (0) |
#define | jffs2_flash_setup(c) (0) |
#define | jffs2_nand_flash_cleanup(c) do {} while(0) |
#define | jffs2_wbuf_dirty(c) (0) |
#define | jffs2_flash_writev(a, b, c, d, e, f) jffs2_flash_direct_writev(a,b,c,d,e) |
#define | jffs2_wbuf_timeout NULL |
#define | jffs2_wbuf_process NULL |
#define | jffs2_nor_ecc(c) (0) |
#define | BUG_ON(x) do { if (unlikely(x)) BUG(); } while(0) |
#define | __init |
Functions | |
struct _inode * | jffs2_new_inode (struct _inode *dir_i, int mode, struct jffs2_raw_inode *ri) |
struct _inode * | jffs2_iget (struct super_block *sb, cyg_uint32 ino) |
void | jffs2_iput (struct _inode *i) |
void | jffs2_gc_release_inode (struct jffs2_sb_info *c, struct jffs2_inode_info *f) |
struct jffs2_inode_info * | jffs2_gc_fetch_inode (struct jffs2_sb_info *c, int inum, int nlink) |
unsigned char * | jffs2_gc_fetch_page (struct jffs2_sb_info *c, struct jffs2_inode_info *f, unsigned long offset, unsigned long *priv) |
void | jffs2_gc_release_page (struct jffs2_sb_info *c, unsigned char *pg, unsigned long *priv) |
int | jffs2_flash_read (struct jffs2_sb_info *c, cyg_uint32 read_buffer_offset, const size_t size, size_t *return_size, unsigned char *write_buffer) |
int | jffs2_flash_write (struct jffs2_sb_info *c, cyg_uint32 write_buffer_offset, const size_t size, size_t *return_size, unsigned char *read_buffer) |
int | jffs2_flash_direct_writev (struct jffs2_sb_info *c, const struct iovec *vecs, unsigned long count, loff_t to, size_t *retlen) |
int | jffs2_flash_erase (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) |
struct _inode * | jffs2_lookup (struct _inode *dir_i, const unsigned char *name, size_t namelen) |
int | jffs2_create (struct _inode *dir_i, const char *d_name, size_t d_namelen, int mode) |
int | jffs2_mknod (struct _inode *dir_i, const unsigned char *d_name, size_t d_namelen, int mode, const unsigned char *data, size_t datalen) |
int | jffs2_link (struct _inode *old_d_inode, struct _inode *dir_i, const unsigned char *d_name, size_t d_namelen) |
int | jffs2_unlink (struct _inode *dir_i, struct _inode *d_inode, const unsigned char *d_name, size_t d_namelen) |
int | jffs2_rmdir (struct _inode *dir_i, struct _inode *d_inode, const unsigned char *d_name, size_t d_namelen) |
int | jffs2_rename (struct _inode *old_dir_i, struct _inode *d_inode, const unsigned char *old_d_name, size_t old_d_namelen, struct _inode *new_dir_i, const unsigned char *new_d_name, size_t new_d_namelen) |