tag | line | file | source code |
buf | 16 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 50 | fs/block_dev.c | memcpy_fromfs(p,buf,chars); |
buf | 52 | fs/block_dev.c | buf += chars; |
buf | 63 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 183 | fs/block_dev.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 185 | fs/block_dev.c | buf += chars; |
buf | 188 | fs/block_dev.c | put_fs_byte(0,buf++); |
buf | 370 | fs/buffer.c | void brelse(struct buffer_head * buf) |
buf | 372 | fs/buffer.c | if (!buf) |
buf | 374 | fs/buffer.c | wait_on_buffer(buf); |
buf | 375 | fs/buffer.c | if (buf->b_count) { |
buf | 376 | fs/buffer.c | if (--buf->b_count) |
buf | 477 | fs/exec.c | char buf[128], *cp, *interp, *i_name, *i_arg; |
buf | 480 | fs/exec.c | strncpy(buf, bh->b_data+2, 127); |
buf | 483 | fs/exec.c | buf[127] = '\0'; |
buf | 484 | fs/exec.c | if ((cp = strchr(buf, '\n')) != NULL) { |
buf | 486 | fs/exec.c | for (cp = buf; (*cp == ' ') || (*cp == '\t'); cp++); |
buf | 23 | fs/ext/dir.c | static int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 70 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 190 | fs/ext/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 192 | fs/ext/file.c | buf += chars; |
buf | 195 | fs/ext/file.c | put_fs_byte(0,buf++); |
buf | 222 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 273 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
buf | 274 | fs/ext/file.c | buf += c; |
buf | 141 | fs/ext/inode.c | void ext_statfs (struct super_block *sb, struct statfs *buf) |
buf | 145 | fs/ext/inode.c | put_fs_long(EXT_SUPER_MAGIC, &buf->f_type); |
buf | 146 | fs/ext/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 148 | fs/ext/inode.c | &buf->f_blocks); |
buf | 150 | fs/ext/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 151 | fs/ext/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 152 | fs/ext/inode.c | put_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files); |
buf | 153 | fs/ext/inode.c | put_fs_long(ext_count_free_inodes(sb), &buf->f_ffree); |
buf | 117 | fs/isofs/file.c | int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 243 | fs/isofs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 245 | fs/isofs/file.c | buf += chars; |
buf | 248 | fs/isofs/file.c | put_fs_byte(0,buf++); |
buf | 245 | fs/isofs/inode.c | void isofs_statfs (struct super_block *sb, struct statfs *buf) |
buf | 247 | fs/isofs/inode.c | put_fs_long(ISOFS_SUPER_MAGIC, &buf->f_type); |
buf | 248 | fs/isofs/inode.c | put_fs_long(1 << ISOFS_BLOCK_BITS, &buf->f_bsize); |
buf | 249 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_nzones, &buf->f_blocks); |
buf | 250 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bfree); |
buf | 251 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bavail); |
buf | 252 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_ninodes, &buf->f_files); |
buf | 253 | fs/isofs/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 16 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 64 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 184 | fs/minix/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 186 | fs/minix/file.c | buf += chars; |
buf | 189 | fs/minix/file.c | put_fs_byte(0,buf++); |
buf | 216 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 267 | fs/minix/file.c | memcpy_fromfs(p,buf,c); |
buf | 268 | fs/minix/file.c | buf += c; |
buf | 123 | fs/minix/inode.c | void minix_statfs(struct super_block *sb, struct statfs *buf) |
buf | 127 | fs/minix/inode.c | put_fs_long(MINIX_SUPER_MAGIC, &buf->f_type); |
buf | 128 | fs/minix/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 129 | fs/minix/inode.c | put_fs_long(sb->u.minix_sb.s_nzones << sb->u.minix_sb.s_log_zone_size, &buf->f_blocks); |
buf | 131 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 132 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 133 | fs/minix/inode.c | put_fs_long(sb->u.minix_sb.s_ninodes, &buf->f_files); |
buf | 134 | fs/minix/inode.c | put_fs_long(minix_count_free_inodes(sb), &buf->f_ffree); |
buf | 17 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
buf | 22 | fs/msdos/file.c | static int msdos_file_read(struct inode *inode,struct file *filp,char *buf, |
buf | 24 | fs/msdos/file.c | static int msdos_file_write(struct inode *inode,struct file *filp,char *buf, |
buf | 77 | fs/msdos/file.c | static int msdos_file_read(struct inode *inode,struct file *filp,char *buf, |
buf | 96 | fs/msdos/file.c | start = buf; |
buf | 97 | fs/msdos/file.c | while ((left = MIN(inode->i_size-filp->f_pos,count-(buf-start))) > 0){ |
buf | 104 | fs/msdos/file.c | memcpy_tofs(buf,data+offset,size); |
buf | 105 | fs/msdos/file.c | buf += size; |
buf | 111 | fs/msdos/file.c | if (ch != 26) put_fs_byte(ch,buf++); |
buf | 115 | fs/msdos/file.c | return buf-start; |
buf | 121 | fs/msdos/file.c | if (start == buf) return -EIO; |
buf | 122 | fs/msdos/file.c | return buf-start; |
buf | 126 | fs/msdos/file.c | static int msdos_file_write(struct inode *inode,struct file *filp,char *buf, |
buf | 150 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
buf | 165 | fs/msdos/file.c | buf,written = size); |
buf | 166 | fs/msdos/file.c | buf += size; |
buf | 177 | fs/msdos/file.c | if ((ch = get_fs_byte(buf++)) == '\n') { |
buf | 200 | fs/msdos/file.c | return start == buf ? error : buf-start; |
buf | 193 | fs/msdos/inode.c | void msdos_statfs(struct super_block *sb,struct statfs *buf) |
buf | 197 | fs/msdos/inode.c | put_fs_long(sb->s_magic,&buf->f_type); |
buf | 198 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->cluster_size*SECTOR_SIZE,&buf->f_bsize); |
buf | 199 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->clusters,&buf->f_blocks); |
buf | 210 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bfree); |
buf | 211 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bavail); |
buf | 212 | fs/msdos/inode.c | put_fs_long(0,&buf->f_files); |
buf | 213 | fs/msdos/inode.c | put_fs_long(0,&buf->f_ffree); |
buf | 37 | fs/open.c | int sys_statfs(const char * path, struct statfs * buf) |
buf | 42 | fs/open.c | verify_area(buf, sizeof(struct statfs)); |
buf | 50 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf); |
buf | 55 | fs/open.c | int sys_fstatfs(unsigned int fd, struct statfs * buf) |
buf | 60 | fs/open.c | verify_area(buf, sizeof(struct statfs)); |
buf | 67 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf); |
buf | 16 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 35 | fs/pipe.c | memcpy_tofs(buf, PIPE_BASE(*inode)+PIPE_TAIL(*inode), chars ); |
buf | 40 | fs/pipe.c | buf += chars; |
buf | 46 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 78 | fs/pipe.c | memcpy_fromfs(PIPE_BASE(*inode)+PIPE_HEAD(*inode), buf, chars ); |
buf | 83 | fs/pipe.c | buf += chars; |
buf | 101 | fs/pipe.c | static int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 168 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 211 | fs/proc/array.c | memcpy_tofs(buf, page + file->f_pos, count); |
buf | 58 | fs/proc/inode.c | void proc_statfs(struct super_block *sb, struct statfs *buf) |
buf | 60 | fs/proc/inode.c | put_fs_long(PROC_SUPER_MAGIC, &buf->f_type); |
buf | 61 | fs/proc/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 62 | fs/proc/inode.c | put_fs_long(0, &buf->f_blocks); |
buf | 63 | fs/proc/inode.c | put_fs_long(0, &buf->f_bfree); |
buf | 64 | fs/proc/inode.c | put_fs_long(0, &buf->f_bavail); |
buf | 65 | fs/proc/inode.c | put_fs_long(0, &buf->f_files); |
buf | 66 | fs/proc/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 15 | fs/proc/mem.c | static int mem_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 35 | fs/proc/mem.c | tmp = buf; |
buf | 59 | fs/proc/mem.c | return tmp-buf; |
buf | 62 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
buf | 82 | fs/proc/mem.c | tmp = buf; |
buf | 110 | fs/proc/mem.c | if (tmp != buf) |
buf | 111 | fs/proc/mem.c | return tmp-buf; |
buf | 68 | fs/read_write.c | int sys_read(unsigned int fd,char * buf,unsigned int count) |
buf | 81 | fs/read_write.c | verify_area(buf,count); |
buf | 82 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
buf | 85 | fs/read_write.c | int sys_write(unsigned int fd,char * buf,unsigned int count) |
buf | 98 | fs/read_write.c | return file->f_op->write(inode,file,buf,count); |
buf | 154 | fs/stat.c | int sys_readlink(const char * path, char * buf, int bufsiz) |
buf | 161 | fs/stat.c | verify_area(buf,bufsiz); |
buf | 169 | fs/stat.c | return inode->i_op->readlink(inode,buf,bufsiz); |
buf | 320 | include/linux/fs.h | extern void brelse(struct buffer_head * buf); |
buf | 12 | include/linux/kernel.h | int sprintf(char * buf, const char * fmt, ...); |
buf | 65 | include/linux/mm.h | extern void rw_swap_page(int rw, unsigned int nr, char * buf); |
buf | 67 | include/linux/mm.h | #define read_swap_page(nr,buf) \ |
buf | 68 | include/linux/mm.h | rw_swap_page(READ,(nr),(buf)) |
buf | 69 | include/linux/mm.h | #define write_swap_page(nr,buf) \ |
buf | 70 | include/linux/mm.h | rw_swap_page(WRITE,(nr),(buf)) |
buf | 148 | include/linux/msdos_fs.h | extern void msdos_statfs(struct super_block *sb,struct statfs *buf); |
buf | 68 | include/linux/tty.h | unsigned char buf[TTY_BUF_SIZE]; |
buf | 117 | include/linux/tty.h | #define LAST(a) ((a)->buf[(TTY_BUF_SIZE-1)&((a)->head-1)]) |
buf | 45 | init/main.c | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 87 | kernel/blk_drv/hd.c | #define port_read(port,buf,nr) \ |
buf | 88 | kernel/blk_drv/hd.c | __asm__("cld;rep;insw"::"d" (port),"D" (buf),"c" (nr):"cx","di") |
buf | 90 | kernel/blk_drv/hd.c | #define port_write(port,buf,nr) \ |
buf | 91 | kernel/blk_drv/hd.c | __asm__("cld;rep;outsw"::"d" (port),"S" (buf),"c" (nr):"cx","si") |
buf | 330 | kernel/blk_drv/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
buf | 350 | kernel/blk_drv/ll_rw_blk.c | for (i=0; i<nb; i++, buf += BLOCK_SIZE) |
buf | 368 | kernel/blk_drv/ll_rw_blk.c | req->buffer = buf; |
buf | 711 | kernel/blk_drv/scsi/aha1542.c | unchar buf[8]; |
buf | 715 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
buf | 717 | kernel/blk_drv/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
buf | 719 | kernel/blk_drv/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
buf | 201 | kernel/blk_drv/scsi/fdomain.c | #define insw( buf, count, port ) \ |
buf | 203 | kernel/blk_drv/scsi/fdomain.c | ( "cld;rep;insw"::"d" (port),"D" (buf),"c" (count):"cx","di" ) |
buf | 205 | kernel/blk_drv/scsi/fdomain.c | #define outsw( buf, count, port ) \ |
buf | 207 | kernel/blk_drv/scsi/fdomain.c | ("cld;rep;outsw"::"d" (port),"S" (buf),"c" (count):"cx","si") |
buf | 290 | kernel/blk_drv/scsi/fdomain.c | unsigned char buf[buflen]; |
buf | 417 | kernel/blk_drv/scsi/fdomain.c | SCinit.request_buffer = SCinit.buffer = buf; |
buf | 418 | kernel/blk_drv/scsi/fdomain.c | SCinit.request_bufflen = SCinit.bufflen = sizeof(buf)-1; |
buf | 433 | kernel/blk_drv/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
buf | 434 | kernel/blk_drv/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
buf | 440 | kernel/blk_drv/scsi/fdomain.c | blocks = (buf[0] << 24) | (buf[1] << 16) |
buf | 441 | kernel/blk_drv/scsi/fdomain.c | | (buf[2] << 8) | buf[3]; |
buf | 442 | kernel/blk_drv/scsi/fdomain.c | size = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7]; |
buf | 136 | kernel/blk_drv/scsi/scsi_ioctl.c | char buf[MAX_BUF]; |
buf | 154 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) buf, (void *) (cmd_in + cmdlen), inlen); |
buf | 161 | kernel/blk_drv/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, ((outlen > MAX_BUF) ? |
buf | 172 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_tofs ((void *) cmd_in, buf, (outlen > MAX_BUF) ? MAX_BUF : outlen); |
buf | 185 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
buf | 474 | kernel/blk_drv/scsi/st.c | int st_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 525 | kernel/blk_drv/scsi/st.c | b_point = buf; |
buf | 611 | kernel/blk_drv/scsi/st.c | int st_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 743 | kernel/blk_drv/scsi/st.c | memcpy_tofs(buf, scsi_tapes[dev].buffer->b_data + |
buf | 746 | kernel/blk_drv/scsi/st.c | buf += transfer; |
buf | 557 | kernel/blk_drv/scsi/wd7000.c | extern int vsprintf(char *buf, const char *fmt, va_list args); |
buf | 1430 | kernel/chr_drv/console.c | char *sptr, *buf = (char *)arg; |
buf | 1433 | kernel/chr_drv/console.c | verify_area(buf,2+video_num_columns*video_num_lines); |
buf | 1434 | kernel/chr_drv/console.c | currcons = get_fs_byte(buf+1); |
buf | 1437 | kernel/chr_drv/console.c | put_fs_byte((char)(video_num_lines),buf++); |
buf | 1438 | kernel/chr_drv/console.c | put_fs_byte((char)(video_num_columns),buf++); |
buf | 1442 | kernel/chr_drv/console.c | put_fs_byte(*sptr++,buf++); |
buf | 122 | kernel/chr_drv/keyboard.c | qp->buf[qp->head]=ch; |
buf | 140 | kernel/chr_drv/keyboard.c | qp->buf[qp->head]=ch; |
buf | 260 | kernel/chr_drv/keyboard.c | char buf[] = { 0x1b, 0x4f, 0x00, 0x00 }; |
buf | 262 | kernel/chr_drv/keyboard.c | buf[2] = key; |
buf | 263 | kernel/chr_drv/keyboard.c | puts_queue(buf); |
buf | 1195 | kernel/chr_drv/keyboard.c | char buf[] = { 0x1b, '[', 0, 0, 0 }; /* must not be static */ |
buf | 1197 | kernel/chr_drv/keyboard.c | buf[2]=cur_table[sc]; |
buf | 1198 | kernel/chr_drv/keyboard.c | if (buf[2] < '9') |
buf | 1199 | kernel/chr_drv/keyboard.c | buf[3]='~'; |
buf | 1201 | kernel/chr_drv/keyboard.c | if ((buf[2] >= 'A' && buf[2] <= 'D') ? |
buf | 1204 | kernel/chr_drv/keyboard.c | buf[1]='O'; |
buf | 1205 | kernel/chr_drv/keyboard.c | puts_queue(buf); |
buf | 70 | kernel/chr_drv/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 74 | kernel/chr_drv/lp.c | char c, *temp = buf; |
buf | 84 | kernel/chr_drv/lp.c | temp = buf; |
buf | 122 | kernel/chr_drv/lp.c | return temp-buf?temp-buf:-ENOSPC; |
buf | 131 | kernel/chr_drv/lp.c | return temp-buf?temp-buf:-EIO; |
buf | 141 | kernel/chr_drv/lp.c | return temp-buf?temp-buf:-EFAULT; |
buf | 148 | kernel/chr_drv/lp.c | return temp-buf; |
buf | 21 | kernel/chr_drv/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
buf | 26 | kernel/chr_drv/mem.c | static int write_ram(struct inode * inode, struct file * file,char * buf, int count) |
buf | 31 | kernel/chr_drv/mem.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
buf | 56 | kernel/chr_drv/mem.c | memcpy_tofs(buf,(void *) pnt, count1); |
buf | 57 | kernel/chr_drv/mem.c | buf += count1; |
buf | 64 | kernel/chr_drv/mem.c | put_fs_byte(0,buf); |
buf | 65 | kernel/chr_drv/mem.c | buf++; |
buf | 70 | kernel/chr_drv/mem.c | memcpy_tofs(buf,(void *) (p - 4096),count); |
buf | 76 | kernel/chr_drv/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 89 | kernel/chr_drv/mem.c | put_fs_byte(0,buf); |
buf | 90 | kernel/chr_drv/mem.c | buf++; |
buf | 95 | kernel/chr_drv/mem.c | memcpy_tofs(buf,(void *) p,count); |
buf | 101 | kernel/chr_drv/mem.c | static int write_mem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 115 | kernel/chr_drv/mem.c | buf++; |
buf | 120 | kernel/chr_drv/mem.c | memcpy_fromfs((void *) p,buf,count); |
buf | 126 | kernel/chr_drv/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 129 | kernel/chr_drv/mem.c | char * tmp = buf; |
buf | 137 | kernel/chr_drv/mem.c | return tmp-buf; |
buf | 140 | kernel/chr_drv/mem.c | static int write_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 143 | kernel/chr_drv/mem.c | char * tmp = buf; |
buf | 151 | kernel/chr_drv/mem.c | return tmp-buf; |
buf | 154 | kernel/chr_drv/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
buf | 159 | kernel/chr_drv/mem.c | static int write_null(struct inode * inode,struct file * file,char * buf, int count) |
buf | 164 | kernel/chr_drv/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
buf | 169 | kernel/chr_drv/mem.c | put_fs_byte(0,buf); |
buf | 170 | kernel/chr_drv/mem.c | buf++; |
buf | 175 | kernel/chr_drv/mem.c | static int write_zero(struct inode * inode,struct file * file,char * buf, int count) |
buf | 68 | kernel/chr_drv/psaux.c | unsigned char buf[AUX_BUF_SIZE]; |
buf | 126 | kernel/chr_drv/psaux.c | result = queue->buf[queue->tail]; |
buf | 149 | kernel/chr_drv/psaux.c | queue->buf[head] = inb(AUX_INPUT_PORT); |
buf | 205 | kernel/chr_drv/serial.c | queue->buf[head++] = 0xff; |
buf | 207 | kernel/chr_drv/serial.c | queue->buf[head++] = 0; |
buf | 212 | kernel/chr_drv/serial.c | queue->buf[head++] = 0xff; |
buf | 215 | kernel/chr_drv/serial.c | queue->buf[head++] = ch; |
buf | 240 | kernel/chr_drv/serial.c | outb_p(queue->buf[tail++], |
buf | 67 | kernel/chr_drv/tty_io.c | queue->buf[queue->head] = c; |
buf | 80 | kernel/chr_drv/tty_io.c | result = 0xff & queue->buf[queue->tail]; |
buf | 284 | kernel/chr_drv/tty_io.c | static int read_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
buf | 288 | kernel/chr_drv/tty_io.c | char * b=buf; |
buf | 364 | kernel/chr_drv/tty_io.c | if (b-buf >= minimum || !current->timeout) |
buf | 389 | kernel/chr_drv/tty_io.c | if ((b-buf) > 1) |
buf | 390 | kernel/chr_drv/tty_io.c | return b-buf; |
buf | 392 | kernel/chr_drv/tty_io.c | if (b-buf) |
buf | 393 | kernel/chr_drv/tty_io.c | return b-buf; |
buf | 435 | kernel/chr_drv/tty_io.c | static int write_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
buf | 438 | kernel/chr_drv/tty_io.c | char c, *b=buf; |
buf | 485 | kernel/chr_drv/tty_io.c | if (b-buf) |
buf | 486 | kernel/chr_drv/tty_io.c | return b-buf; |
buf | 494 | kernel/chr_drv/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 517 | kernel/chr_drv/tty_io.c | i = read_chan(tty,file,buf,count); |
buf | 523 | kernel/chr_drv/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 550 | kernel/chr_drv/tty_io.c | i = write_chan(tty,file,buf,count); |
buf | 16 | kernel/printk.c | static char buf[1024]; |
buf | 18 | kernel/printk.c | extern int vsprintf(char * buf, const char * fmt, va_list args); |
buf | 26 | kernel/printk.c | int sys_syslog(int type, char * buf, int len) |
buf | 51 | kernel/printk.c | if (!buf || len < 0) |
buf | 55 | kernel/printk.c | verify_area(buf,len); |
buf | 72 | kernel/printk.c | put_fs_byte(c,buf); |
buf | 73 | kernel/printk.c | buf++; |
buf | 89 | kernel/printk.c | i=vsprintf(buf,fmt,args); |
buf | 93 | kernel/printk.c | *p = buf[j]; |
buf | 101 | kernel/printk.c | console_print(buf); |
buf | 119 | kernel/vsprintf.c | int vsprintf(char *buf, const char *fmt, va_list args) |
buf | 134 | kernel/vsprintf.c | for (str=buf ; *fmt ; ++fmt) { |
buf | 245 | kernel/vsprintf.c | *ip = (str - buf); |
buf | 259 | kernel/vsprintf.c | return str-buf; |
buf | 262 | kernel/vsprintf.c | int sprintf(char * buf, const char *fmt, ...) |
buf | 268 | kernel/vsprintf.c | i=vsprintf(buf,fmt,args); |
buf | 11 | lib/write.c | _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 64 | mm/swap.c | void rw_swap_page(int rw, unsigned int nr, char * buf) |
buf | 85 | mm/swap.c | ll_rw_page(rw,p->swap_device,nr,buf); |
buf | 96 | mm/swap.c | ll_rw_swap_file(rw,p->swap_file->i_dev, zones,4,buf); |
buf | 49 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
buf | 51 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, char *buf, |
buf | 23 | net/unix.c | char *buf; |
buf | 110 | net/unix.c | char buf[sizeof(sockun->sun_path) + 1]; |
buf | 115 | net/unix.c | else if (sockaddr_len <= 0 || sockaddr_len >= sizeof(buf)-1) |
buf | 118 | net/unix.c | memcpy(buf, sockun->sun_path, sockaddr_len); |
buf | 119 | net/unix.c | buf[sockaddr_len] = '\0'; |
buf | 120 | net/unix.c | printk("sockaddr_un: '%s'[%d]\n", buf, |
buf | 214 | net/unix.c | upd->buf = NULL; |
buf | 237 | net/unix.c | if (upd->buf) { |
buf | 238 | net/unix.c | free_page((unsigned long)upd->buf); |
buf | 239 | net/unix.c | upd->buf = NULL; |
buf | 264 | net/unix.c | if (!(upd->buf = (char *)get_free_page(GFP_USER))) { |
buf | 552 | net/unix.c | memcpy_tofs(ubuf, upd->buf + upd->bp_tail, cando); |
buf | 630 | net/unix.c | memcpy_fromfs(pupd->buf + pupd->bp_head, ubuf, cando); |
buf | 60 | tools/build.c | char buf[1024]; |
buf | 83 | tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
buf | 86 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 88 | tools/build.c | if (((long *) buf)[0]!=0x04100301) |
buf | 90 | tools/build.c | if (((long *) buf)[1]!=MINIX_HEADER) |
buf | 92 | tools/build.c | if (((long *) buf)[3]!=0) |
buf | 94 | tools/build.c | if (((long *) buf)[4]!=0) |
buf | 96 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 98 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 100 | tools/build.c | i=read(id,buf,sizeof buf); |
buf | 104 | tools/build.c | if ((*(unsigned short *)(buf+510)) != 0xAA55) |
buf | 106 | tools/build.c | buf[508] = (char) minor_root; |
buf | 107 | tools/build.c | buf[509] = (char) major_root; |
buf | 108 | tools/build.c | i=write(1,buf,512); |
buf | 115 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 117 | tools/build.c | if (((long *) buf)[0]!=0x04100301) |
buf | 119 | tools/build.c | if (((long *) buf)[1]!=MINIX_HEADER) |
buf | 121 | tools/build.c | if (((long *) buf)[3]!=0) |
buf | 123 | tools/build.c | if (((long *) buf)[4]!=0) |
buf | 125 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 127 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 129 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
buf | 130 | tools/build.c | if (write(1,buf,c)!=c) |
buf | 137 | tools/build.c | for (c=0 ; c<sizeof(buf) ; c++) |
buf | 138 | tools/build.c | buf[c] = '\0'; |
buf | 141 | tools/build.c | if (c > sizeof(buf)) |
buf | 142 | tools/build.c | c = sizeof(buf); |
buf | 143 | tools/build.c | if (write(1,buf,c) != c) |
buf | 150 | tools/build.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 152 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 154 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
buf | 155 | tools/build.c | if (write(1,buf,c)!=c) |