tag | line | file | source code |
s | 65 | fs/ext/inode.c | struct super_block *ext_read_super(struct super_block *s,void *data) |
s | 69 | fs/ext/inode.c | int dev = s->s_dev,block; |
s | 74 | fs/ext/inode.c | lock_super(s); |
s | 76 | fs/ext/inode.c | s->s_dev=0; |
s | 77 | fs/ext/inode.c | free_super(s); |
s | 84 | fs/ext/inode.c | s->s_blocksize = 1024; |
s | 85 | fs/ext/inode.c | s->u.ext_sb.s_ninodes = es->s_ninodes; |
s | 86 | fs/ext/inode.c | s->u.ext_sb.s_nzones = es->s_nzones; |
s | 88 | fs/ext/inode.c | s->u.ext_sb.s_imap_blocks = es->s_imap_blocks; |
s | 89 | fs/ext/inode.c | s->u.ext_sb.s_zmap_blocks = es->s_zmap_blocks; |
s | 91 | fs/ext/inode.c | s->u.ext_sb.s_firstdatazone = es->s_firstdatazone; |
s | 92 | fs/ext/inode.c | s->u.ext_sb.s_log_zone_size = es->s_log_zone_size; |
s | 93 | fs/ext/inode.c | s->u.ext_sb.s_max_size = es->s_max_size; |
s | 94 | fs/ext/inode.c | s->s_magic = es->s_magic; |
s | 96 | fs/ext/inode.c | s->u.ext_sb.s_zmap[0] = (struct buffer_head *) es->s_firstfreeblock; |
s | 97 | fs/ext/inode.c | s->u.ext_sb.s_zmap[2] = (struct buffer_head *) es->s_freeblockscount; |
s | 98 | fs/ext/inode.c | s->u.ext_sb.s_imap[0] = (struct buffer_head *) es->s_firstfreeinode; |
s | 99 | fs/ext/inode.c | s->u.ext_sb.s_imap[2] = (struct buffer_head *) es->s_freeinodescount; |
s | 102 | fs/ext/inode.c | if (s->s_magic != EXT_SUPER_MAGIC) { |
s | 103 | fs/ext/inode.c | s->s_dev = 0; |
s | 104 | fs/ext/inode.c | free_super(s); |
s | 110 | fs/ext/inode.c | s->u.ext_sb.s_imap[i] = NULL; |
s | 112 | fs/ext/inode.c | s->u.ext_sb.s_zmap[i] = NULL; |
s | 114 | fs/ext/inode.c | for (i=0 ; i < s->u.ext_sb.s_imap_blocks ; i++) |
s | 115 | fs/ext/inode.c | if (s->u.ext_sb.s_imap[i]=bread(dev, block, BLOCK_SIZE)) |
s | 119 | fs/ext/inode.c | for (i=0 ; i < s->u.ext_sb.s_zmap_blocks ; i++) |
s | 120 | fs/ext/inode.c | if (s->u.ext_sb.s_zmap[i]=bread(dev, block, BLOCK_SIZE)) |
s | 124 | fs/ext/inode.c | if (block != 2+s->u.ext_sb.s_imap_blocks+s->u.ext_sb.s_zmap_blocks) { |
s | 126 | fs/ext/inode.c | brelse(s->u.ext_sb.s_imap[i]); |
s | 128 | fs/ext/inode.c | brelse(s->u.ext_sb.s_zmap[i]); |
s | 129 | fs/ext/inode.c | s->s_dev=0; |
s | 130 | fs/ext/inode.c | free_super(s); |
s | 134 | fs/ext/inode.c | s->u.ext_sb.s_imap[0]->b_data[0] |= 1; |
s | 135 | fs/ext/inode.c | s->u.ext_sb.s_zmap[0]->b_data[0] |= 1; |
s | 138 | fs/ext/inode.c | if (!s->u.ext_sb.s_zmap[0]) |
s | 139 | fs/ext/inode.c | s->u.ext_sb.s_zmap[1] = NULL; |
s | 141 | fs/ext/inode.c | if (!(s->u.ext_sb.s_zmap[1] = bread(dev, (unsigned long) s->u.ext_sb.s_zmap[0], BLOCK_SIZE))) { |
s | 143 | fs/ext/inode.c | s->s_dev = 0; |
s | 144 | fs/ext/inode.c | free_super(s); |
s | 147 | fs/ext/inode.c | if (!s->u.ext_sb.s_imap[0]) |
s | 148 | fs/ext/inode.c | s->u.ext_sb.s_imap[1] = NULL; |
s | 150 | fs/ext/inode.c | block = 2 + (((unsigned long) s->u.ext_sb.s_imap[0]) - 1) / EXT_INODES_PER_BLOCK; |
s | 151 | fs/ext/inode.c | if (!(s->u.ext_sb.s_imap[1] = bread(dev, block, BLOCK_SIZE))) { |
s | 153 | fs/ext/inode.c | brelse(s->u.ext_sb.s_zmap[1]); |
s | 154 | fs/ext/inode.c | s->s_dev = 0; |
s | 155 | fs/ext/inode.c | free_super (s); |
s | 161 | fs/ext/inode.c | free_super(s); |
s | 163 | fs/ext/inode.c | s->s_dev = dev; |
s | 164 | fs/ext/inode.c | s->s_op = &ext_sops; |
s | 165 | fs/ext/inode.c | if (!(s->s_mounted = iget(dev,EXT_ROOT_INO))) { |
s | 166 | fs/ext/inode.c | s->s_dev=0; |
s | 170 | fs/ext/inode.c | return s; |
s | 49 | fs/minix/inode.c | struct super_block *minix_read_super(struct super_block *s,void *data) |
s | 53 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
s | 55 | fs/minix/inode.c | lock_super(s); |
s | 57 | fs/minix/inode.c | s->s_dev=0; |
s | 58 | fs/minix/inode.c | free_super(s); |
s | 63 | fs/minix/inode.c | s->s_blocksize = 1024; |
s | 64 | fs/minix/inode.c | s->u.minix_sb.s_ninodes = ms->s_ninodes; |
s | 65 | fs/minix/inode.c | s->u.minix_sb.s_nzones = ms->s_nzones; |
s | 66 | fs/minix/inode.c | s->u.minix_sb.s_imap_blocks = ms->s_imap_blocks; |
s | 67 | fs/minix/inode.c | s->u.minix_sb.s_zmap_blocks = ms->s_zmap_blocks; |
s | 68 | fs/minix/inode.c | s->u.minix_sb.s_firstdatazone = ms->s_firstdatazone; |
s | 69 | fs/minix/inode.c | s->u.minix_sb.s_log_zone_size = ms->s_log_zone_size; |
s | 70 | fs/minix/inode.c | s->u.minix_sb.s_max_size = ms->s_max_size; |
s | 71 | fs/minix/inode.c | s->s_magic = ms->s_magic; |
s | 73 | fs/minix/inode.c | if (s->s_magic != MINIX_SUPER_MAGIC) { |
s | 74 | fs/minix/inode.c | s->s_dev = 0; |
s | 75 | fs/minix/inode.c | free_super(s); |
s | 80 | fs/minix/inode.c | s->u.minix_sb.s_imap[i] = NULL; |
s | 82 | fs/minix/inode.c | s->u.minix_sb.s_zmap[i] = NULL; |
s | 84 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_imap_blocks ; i++) |
s | 85 | fs/minix/inode.c | if (s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) |
s | 89 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_zmap_blocks ; i++) |
s | 90 | fs/minix/inode.c | if (s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) |
s | 94 | fs/minix/inode.c | if (block != 2+s->u.minix_sb.s_imap_blocks+s->u.minix_sb.s_zmap_blocks) { |
s | 96 | fs/minix/inode.c | brelse(s->u.minix_sb.s_imap[i]); |
s | 98 | fs/minix/inode.c | brelse(s->u.minix_sb.s_zmap[i]); |
s | 99 | fs/minix/inode.c | s->s_dev=0; |
s | 100 | fs/minix/inode.c | free_super(s); |
s | 104 | fs/minix/inode.c | s->u.minix_sb.s_imap[0]->b_data[0] |= 1; |
s | 105 | fs/minix/inode.c | s->u.minix_sb.s_zmap[0]->b_data[0] |= 1; |
s | 106 | fs/minix/inode.c | free_super(s); |
s | 108 | fs/minix/inode.c | s->s_dev = dev; |
s | 109 | fs/minix/inode.c | s->s_op = &minix_sops; |
s | 110 | fs/minix/inode.c | if (!(s->s_mounted = iget(dev,MINIX_ROOT_INO))) { |
s | 111 | fs/minix/inode.c | s->s_dev=0; |
s | 115 | fs/minix/inode.c | return s; |
s | 90 | fs/msdos/inode.c | struct super_block *msdos_read_super(struct super_block *s,void *data) |
s | 98 | fs/msdos/inode.c | s->s_dev = 0; |
s | 102 | fs/msdos/inode.c | lock_super(s); |
s | 103 | fs/msdos/inode.c | bh = bread(s->s_dev, 0, BLOCK_SIZE); |
s | 104 | fs/msdos/inode.c | free_super(s); |
s | 106 | fs/msdos/inode.c | s->s_dev = 0; |
s | 111 | fs/msdos/inode.c | s->s_blocksize = 1024; /* we cannot handle anything else yet */ |
s | 112 | fs/msdos/inode.c | MSDOS_SB(s)->cluster_size = b->cluster_size; |
s | 113 | fs/msdos/inode.c | MSDOS_SB(s)->fats = b->fats; |
s | 114 | fs/msdos/inode.c | MSDOS_SB(s)->fat_start = b->reserved; |
s | 115 | fs/msdos/inode.c | MSDOS_SB(s)->fat_length = b->fat_length; |
s | 116 | fs/msdos/inode.c | MSDOS_SB(s)->dir_start = b->reserved+b->fats*b->fat_length; |
s | 117 | fs/msdos/inode.c | MSDOS_SB(s)->dir_entries = *((unsigned short *) &b->dir_entries); |
s | 118 | fs/msdos/inode.c | MSDOS_SB(s)->data_start = MSDOS_SB(s)->dir_start+((MSDOS_SB(s)-> |
s | 121 | fs/msdos/inode.c | &b->sectors) : b->total_sect)-MSDOS_SB(s)->data_start; |
s | 122 | fs/msdos/inode.c | MSDOS_SB(s)->clusters = b->cluster_size ? data_sectors/b->cluster_size : |
s | 124 | fs/msdos/inode.c | MSDOS_SB(s)->fat_bits = MSDOS_SB(s)->clusters > MSDOS_FAT12 ? 16 : 12; |
s | 127 | fs/msdos/inode.c | MSDOS_SB(s)->fat_bits,check,conversion); |
s | 129 | fs/msdos/inode.c | b->media,MSDOS_SB(s)->cluster_size,MSDOS_SB(s)->fats,MSDOS_SB(s)->fat_start, |
s | 130 | fs/msdos/inode.c | MSDOS_SB(s)->fat_length,MSDOS_SB(s)->dir_start,MSDOS_SB(s)->dir_entries, |
s | 131 | fs/msdos/inode.c | MSDOS_SB(s)->data_start,*(unsigned short *) &b->sectors,b->total_sect); |
s | 132 | fs/msdos/inode.c | if (!MSDOS_SB(s)->fats || (MSDOS_SB(s)->dir_entries & (MSDOS_DPS-1)) |
s | 133 | fs/msdos/inode.c | || !b->cluster_size || MSDOS_SB(s)->clusters+2 > MSDOS_SB(s)-> |
s | 134 | fs/msdos/inode.c | fat_length*SECTOR_SIZE*8/MSDOS_SB(s)->fat_bits) { |
s | 135 | fs/msdos/inode.c | s->s_dev = 0; |
s | 139 | fs/msdos/inode.c | if (!MSDOS_CAN_BMAP(MSDOS_SB(s))) printk("No bmap support\r\n"); |
s | 140 | fs/msdos/inode.c | s->s_magic = MSDOS_SUPER_MAGIC; |
s | 141 | fs/msdos/inode.c | MSDOS_SB(s)->name_check = check; |
s | 142 | fs/msdos/inode.c | MSDOS_SB(s)->conversion = conversion; |
s | 144 | fs/msdos/inode.c | s->s_op = &msdos_sops; |
s | 145 | fs/msdos/inode.c | MSDOS_SB(s)->fs_uid = current->uid; |
s | 146 | fs/msdos/inode.c | MSDOS_SB(s)->fs_gid = current->gid; |
s | 147 | fs/msdos/inode.c | MSDOS_SB(s)->fs_umask = current->umask; |
s | 148 | fs/msdos/inode.c | if (!(s->s_mounted = iget(s->s_dev,MSDOS_ROOT_INO))) { |
s | 149 | fs/msdos/inode.c | s->s_dev = 0; |
s | 153 | fs/msdos/inode.c | return s; |
s | 81 | fs/super.c | struct super_block * s; |
s | 85 | fs/super.c | s = 0+super_block; |
s | 86 | fs/super.c | while (s < NR_SUPER+super_block) |
s | 87 | fs/super.c | if (s->s_dev == dev) { |
s | 88 | fs/super.c | wait_on_super(s); |
s | 89 | fs/super.c | if (s->s_dev == dev) |
s | 90 | fs/super.c | return s; |
s | 91 | fs/super.c | s = 0+super_block; |
s | 93 | fs/super.c | s++; |
s | 117 | fs/super.c | struct super_block * s; |
s | 123 | fs/super.c | if (s = get_super(dev)) |
s | 124 | fs/super.c | return s; |
s | 129 | fs/super.c | for (s = 0+super_block ;; s++) { |
s | 130 | fs/super.c | if (s >= NR_SUPER+super_block) |
s | 132 | fs/super.c | if (!s->s_dev) |
s | 135 | fs/super.c | s->s_dev = dev; |
s | 136 | fs/super.c | s->s_flags = flags; |
s | 137 | fs/super.c | if (!type->read_super(s,data)) |
s | 139 | fs/super.c | s->s_dev = dev; |
s | 140 | fs/super.c | s->s_covered = NULL; |
s | 141 | fs/super.c | s->s_rd_only = 0; |
s | 142 | fs/super.c | s->s_dirt = 0; |
s | 143 | fs/super.c | return(s); |
s | 46 | include/linux/msdos_fs.h | #define MSDOS_SB(s) (&((s)->u.msdos_sb)) |
s | 153 | include/linux/msdos_fs.h | extern struct super_block *msdos_read_super(struct super_block *s,void *data); |
s | 121 | include/linux/string.h | extern inline char * strchr(const char * s,char c) |
s | 134 | include/linux/string.h | :"=a" (__res):"S" (s),"0" (c):"si"); |
s | 138 | include/linux/string.h | extern inline char * strrchr(const char * s,char c) |
s | 150 | include/linux/string.h | :"=d" (__res):"0" (0),"S" (s),"a" (c):"ax","si"); |
s | 256 | include/linux/string.h | extern inline size_t strlen(const char * s) |
s | 264 | include/linux/string.h | :"=c" (__res):"D" (s),"a" (0),"0" (0xffffffff):"di"); |
s | 270 | include/linux/string.h | extern inline char * strtok(char * s,const char * ct) |
s | 324 | include/linux/string.h | :"0" (___strtok),"1" (s),"g" (ct) |
s | 389 | include/linux/string.h | extern inline void * memset(void * s,char c,size_t count) |
s | 394 | include/linux/string.h | ::"a" (c),"D" (s),"c" (count) |
s | 396 | include/linux/string.h | return s; |
s | 53 | include/time.h | size_t strftime(char * s, size_t smax, const char * fmt, const struct tm * tp); |
s | 89 | kernel/blk_drv/ramdisk.c | struct minix_super_block s; |
s | 106 | kernel/blk_drv/ramdisk.c | *((struct minix_super_block *) &s) = *((struct minix_super_block *) bh->b_data); |
s | 108 | kernel/blk_drv/ramdisk.c | if (s.s_magic != MINIX_SUPER_MAGIC) |
s | 111 | kernel/blk_drv/ramdisk.c | nblocks = s.s_nzones << s.s_log_zone_size; |
s | 1220 | kernel/chr_drv/console.c | void * memsetw(void * s,unsigned short c,int count) |
s | 1225 | kernel/chr_drv/console.c | ::"a" (c),"D" (s),"c" (count) |
s | 1227 | kernel/chr_drv/console.c | return s; |
s | 44 | kernel/math/sqrt.c | void fsqrt(const temp_real * s, temp_real * d) |
s | 52 | kernel/math/sqrt.c | exponent = s->exponent; |
s | 54 | kernel/math/sqrt.c | src[2] = s->a; |
s | 55 | kernel/math/sqrt.c | src[3] = s->b; |
s | 16 | kernel/panic.c | volatile void panic(const char * s) |
s | 18 | kernel/panic.c | printk("Kernel panic: %s\n\r",s); |
s | 19 | kernel/vsprintf.c | static int skip_atoi(const char **s) |
s | 23 | kernel/vsprintf.c | while (is_digit(**s)) |
s | 24 | kernel/vsprintf.c | i = i*10 + *((*s)++) - '0'; |
s | 98 | kernel/vsprintf.c | char *s; |
s | 171 | kernel/vsprintf.c | s = va_arg(args, char *); |
s | 172 | kernel/vsprintf.c | len = strlen(s); |
s | 182 | kernel/vsprintf.c | *str++ = *s++; |