/external/e2fsprogs/lib/ext2fs/ |
valid_blk.c | 2 * valid_blk.c --- does the inode have valid blocks? 24 * This function returns 1 if the inode's block entries actually 27 int ext2fs_inode_has_valid_blocks2(ext2_filsys fs, struct ext2_inode *inode) 33 if (!LINUX_S_ISDIR(inode->i_mode) && !LINUX_S_ISREG(inode->i_mode) && 34 !LINUX_S_ISLNK(inode->i_mode)) 41 if (LINUX_S_ISLNK (inode->i_mode)) { 42 if (ext2fs_file_acl_block(fs, inode) == 0) { 44 if (inode->i_blocks == 0) 48 if (inode->i_size >= EXT2_N_BLOCKS*4 [all...] |
i_block.c | 30 errcode_t ext2fs_iblk_add_blocks(ext2_filsys fs, struct ext2_inode *inode, 33 unsigned long long b = inode->i_blocks; 36 b += ((long long) inode->osd2.linux2.l_i_blocks_hi) << 32; 39 !(inode->i_flags & EXT4_HUGE_FILE_FL)) 46 inode->osd2.linux2.l_i_blocks_hi = b >> 32; 49 inode->i_blocks = b & 0xFFFFFFFF; 53 errcode_t ext2fs_iblk_sub_blocks(ext2_filsys fs, struct ext2_inode *inode, 56 unsigned long long b = inode->i_blocks; 59 b += ((long long) inode->osd2.linux2.l_i_blocks_hi) << 32; 62 !(inode->i_flags & EXT4_HUGE_FILE_FL) [all...] |
symlink.c | 51 struct ext2_inode inode; local 79 memset(&inode, 0, sizeof(struct ext2_inode)); 80 fastlink = (target_len < sizeof(inode.i_block)); 83 &inode, 91 * Allocate an inode, if necessary 101 * Create the inode structure.... 103 inode.i_mode = LINUX_S_IFLNK | 0777; 104 inode.i_uid = inode.i_gid = 0; 105 inode.i_links_count = 1 [all...] |
bmap.c | 30 struct ext2_inode *inode, 34 #define inode_bmap(inode, nr) ((inode)->i_block[(nr)]) 134 struct ext2_inode *inode, 141 struct ext2_inode *inode, 164 extent_bmap(fs, ino, inode, handle, 0, 0, 177 struct ext2_inode *inode, blk64_t lblk, 186 !(inode->i_flags & EXT4_EXTENTS_FL)) 189 retval = ext2fs_extent_open2(fs, ino, inode, &handle); 193 retval = implied_cluster_alloc(fs, ino, inode, handle, lblk, pblk) [all...] |
mkdir.c | 40 struct ext2_inode parent_inode, inode; local 58 * Allocate an inode, if necessary 70 memset(&inode, 0, sizeof(struct ext2_inode)); 73 &inode, 85 inode.i_block); 92 * Get the parent's inode, if necessary 102 * Create the inode structure.... 104 inode.i_mode = LINUX_S_IFDIR | (0777 & ~fs->umask); 105 inode.i_uid = inode.i_gid = 0 [all...] |
lookup.c | 25 ext2_ino_t *inode; member in struct:lookup_struct 44 *ls->inode = dirent->inode; 51 int namelen, char *buf, ext2_ino_t *inode) 60 ls.inode = inode;
|
/external/ltp/testcases/kernel/device-drivers/drm/kernel_space/ |
str_drm.h | 34 extern int tdrm_test_interface(struct inode *inode, struct file *filp, 36 extern int tdrm_test_stub_register(struct inode *inode,struct file *filp, 38 extern int tdrm_test_stub_unregister(struct inode *inode,struct file *filp, 40 extern int tdrm_test_uninit_agp(struct inode *inode,struct file *filp, 42 extern int tdrm_test_init_agp(struct inode *inode,struct file *filp [all...] |
tdrm.c | 81 int tdrm_test_stub_register(struct inode *inode, struct file *filp, 92 int tdrm_test_stub_unregister(struct inode *inode, struct file *filp, 99 int tdrm_test_uninit_agp(struct inode *inode, struct file *filp, 106 int tdrm_test_init_agp(struct inode *inode, struct file *filp, 113 int tdrm_test_add_magic(struct inode *inode, struct file *filp [all...] |
/external/squashfs-tools/kernel/fs/squashfs/ |
inode.c | 21 * inode.c 27 * Inodes in Squashfs are identified by a 48-bit inode which encodes the 28 * location of the compressed metadata block containing the inode, and the byte 29 * offset into that block where the inode is placed (<block, offset>). 32 * (regular file, directory, device, etc.), the inode contents and length 35 * To further maximise compression, two types of regular file inode and 36 * directory inode are defined: inodes optimised for frequently occurring 51 * Initialise VFS inode with the base inode information common to all 52 * Squashfs inode types. Sqsh_ino contains the unswapped base inod 82 struct inode *inode = iget_locked(sb, ino_number); local [all...] |
symlink.c | 28 * link inode within the inode table. This allows the normally small symbolic 29 * link to be compressed as part of the inode table, achieving much greater 48 struct inode *inode = page->mapping->host; local 49 struct super_block *sb = inode->i_sb; 52 u64 block = squashfs_i(inode)->start; 53 int offset = squashfs_i(inode)->offset; 54 int length = min_t(int, i_size_read(inode) - index, PAGE_CACHE_SIZE); 70 squashfs_i(inode)->start [all...] |
file.c | 29 * file inode (itself stored in one or more compressed metadata blocks). 58 * Locate cache slot in range [offset, index] for specified inode. If 61 static struct meta_index *locate_meta_index(struct inode *inode, int offset, 65 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; 76 if (msblk->meta_index[i].inode_number == inode->i_ino && 100 static struct meta_index *empty_meta_index(struct inode *inode, int offset, 103 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; 149 meta->inode_number = inode->i_ino 377 struct inode *inode = page->mapping->host; local [all...] |
squashfs_fs_i.h | 43 struct inode vfs_inode;
|
/external/freetype/src/cache/ |
ftcimage.c | 34 FTC_INode inode = (FTC_INode)ftcinode; local 38 if ( inode->glyph ) 40 FT_Done_Glyph( inode->glyph ); 41 inode->glyph = NULL; 44 FTC_GNode_Done( FTC_GNODE( inode ), cache ); 45 FT_FREE( inode ); 50 FTC_INode_Free( FTC_INode inode, 53 ftc_inode_free( FTC_NODE( inode ), cache ); 65 FTC_INode inode = NULL; local 68 if ( !FT_NEW( inode ) ) 111 FTC_INode inode = (FTC_INode)ftcinode; local [all...] |
/external/ltp/testcases/kernel/syscalls/utils/ |
inotify.h | 2 * Inode based directory notification for Linux 72 * struct inotify_watch - represents a watch request on a specific inode 75 * i_list, mask are protected by inode->inotify_mutex of the associated inode. 76 * ih, inode, and wd are never written to once the watch is created. 84 struct list_head i_list; /* entry in inode's list */ 87 struct inode *inode; /* associated inode */ member in struct:inotify_watch 94 const char *, struct inode *); [all...] |
/external/e2fsprogs/e2fsck/ |
pass4.c | 23 * This routine is called when an inode is not connected to the 30 struct ext2_inode_large *inode) 37 e2fsck_read_inode_full(ctx, i, EXT2_INODE(inode), 41 extra_size = inode->i_extra_isize; 45 pctx.inode = EXT2_INODE(inode); 48 eamagic = *(__u32 *)(((char *)inode) +EXT2_GOOD_OLD_INODE_SIZE + 56 if (!inode->i_blocks && eamagic != EXT2_EXT_ATTR_MAGIC && 57 (LINUX_S_ISREG(inode->i_mode) || LINUX_S_ISDIR(inode->i_mode))) 141 struct ext2_inode_large *inode; local [all...] |
/external/e2fsprogs/debugfs/ |
dump.c | 2 * dump.c --- dump the contents of an inode out to a file 70 static void fix_perms(const char *cmd, const struct ext2_inode *inode, 77 i = fchmod(fd, mode_xlate(inode->i_mode)); 79 i = chmod(name, mode_xlate(inode->i_mode)); 84 i = chown(name, inode->i_uid, inode->i_gid); 87 i = fchown(fd, inode->i_uid, inode->i_gid); 89 i = chown(name, inode->i_uid, inode->i_gid) 104 struct ext2_inode inode; local 150 ext2_ino_t inode; local 312 struct ext2_inode inode; local 353 struct ext2_inode inode; local 374 ext2_ino_t inode; local [all...] |
/external/perfetto/src/traced/probes/filesystem/ |
range_tree.cc | 22 const std::set<std::string> RangeTree::Get(Inode inode) { 24 auto lower = map_.upper_bound(inode); 32 void RangeTree::Insert(Inode inode, RangeTree::DataType value) { 35 PERFETTO_DCHECK(inode > lower->first); 39 auto success = map_[inode].Add(value);
|
range_tree.h | 49 // This comes from the observation that close-by inode numbers tend to be 56 const std::set<std::string> Get(Inode inode); 57 void Insert(Inode inode, DataType value); 60 std::map<Inode, SmallSet<DataType, kSetSize>> map_;
|
/external/squashfs-tools/squashfs-tools/ |
unsquash-4.c | 97 struct inode *read_inode_4(unsigned int start_block, unsigned int offset) 103 static struct inode i; 105 TRACE("read_inode: reading inode [%d:%d]\n", start_block, offset); 108 EXIT_UNSQUASH("read_inode: inode table block %lld not found\n", 122 struct squashfs_dir_inode_header *inode = &header.dir; local 124 SQUASHFS_SWAP_DIR_INODE_HEADER(block_ptr, inode); 126 i.data = inode->file_size; 127 i.offset = inode->offset; 128 i.start = inode->start_block; 133 struct squashfs_ldir_inode_header *inode = &header.ldir local 144 struct squashfs_reg_inode_header *inode = &header.reg; local 164 struct squashfs_lreg_inode_header *inode = &header.lreg; local 185 struct squashfs_symlink_inode_header *inode = &header.symlink; local 209 struct squashfs_dev_inode_header *inode = &header.dev; local 219 struct squashfs_ldev_inode_header *inode = &header.ldev; local 234 struct squashfs_lipc_inode_header *inode = &header.lipc; local [all...] |
unsquash-2.c | 128 struct inode *read_inode_2(unsigned int start_block, unsigned int offset) 134 static struct inode i; 136 TRACE("read_inode: reading inode [%d:%d]\n", start_block, offset); 139 EXIT_UNSQUASH("read_inode: inode table block %lld not found\n", 161 squashfs_dir_inode_header_2 *inode = &header.dir; local 172 i.data = inode->file_size; 173 i.offset = inode->offset; 174 i.start = inode->start_block; 175 i.time = inode->mtime; 179 squashfs_ldir_inode_header_2 *inode = &header.ldir local 197 squashfs_reg_inode_header_2 *inode = &header.reg; local [all...] |
/external/e2fsprogs/contrib/android/ |
fsmap.c | 30 struct ext2_inode inode; local 33 retval = ext2fs_read_inode(fs, ino, &inode); 37 if (!ext2fs_inode_has_valid_blocks2(fs, &inode)) 38 return format->inline_data(&(inode.i_block[0]), 50 struct ext2_inode inode; local 52 if (ext2fs_read_inode(fs, ino, &inode)) 54 return S_ISDIR(inode.i_mode); 65 struct ext2_inode inode; variable in typeref:struct:ext2_inode 79 retval = ext2fs_read_inode(pdata->fs, de->inode, &inode); [all...] |
/external/squashfs-tools/kernel/include/linux/ |
squashfs_fs_i.h | 43 struct inode vfs_inode;
|
/external/squashfs-tools/kernel-2.4/fs/squashfs/ |
Makefile | 7 obj-y := inode.o squashfs2_0.o
|
/external/squashfs-tools/kernel-2.4/include/linux/ |
squashfs_fs_sb.h | 69 struct inode *(*iget)(struct super_block *s, squashfs_inode_t 70 inode); 71 long long (*read_blocklist)(struct inode *inode, int
|
/external/ltp/testcases/kernel/fs/scsi/ltpfs/ |
LtpfsCmds.c | 36 static int ltpdev_open(struct inode *inode, struct file *pfile); 37 static int ltpdev_release(struct inode *inode, struct file *pfile); 38 static int ltpdev_ioctl(struct inode *pinode, struct file *pfile, 69 static int ltpdev_open(struct inode *pinode, struct file *pfile) 75 static int ltpdev_release(struct inode *pinode, struct file *pfile) 82 static int ltpdev_ioctl(struct inode *pinode, struct file *pfile, 262 struct inode *inode; local [all...] |