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 | 62 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 155 | fs/block_dev.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 157 | fs/block_dev.c | buf += chars; |
buf | 160 | 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 | 423 | fs/exec.c | char buf[128]; |
buf | 481 | fs/exec.c | memset(buf,0,sizeof(buf)); |
buf | 484 | fs/exec.c | retval = read_exec(inode,0,buf,128); |
buf | 488 | fs/exec.c | ex = *((struct exec *) buf); /* exec-header */ |
buf | 489 | fs/exec.c | if ((buf[0] == '#') && (buf[1] == '!') && (!sh_bang)) { |
buf | 498 | fs/exec.c | buf[127] = '\0'; |
buf | 499 | fs/exec.c | if ((cp = strchr(buf, '\n')) == NULL) |
buf | 500 | fs/exec.c | cp = buf+127; |
buf | 502 | fs/exec.c | while (cp > buf) { |
buf | 509 | fs/exec.c | for (cp = buf+2; (*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 | 71 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 163 | fs/ext/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 165 | fs/ext/file.c | buf += chars; |
buf | 168 | fs/ext/file.c | put_fs_byte(0,buf++); |
buf | 192 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 243 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
buf | 244 | 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 | 112 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 238 | fs/isofs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 240 | fs/isofs/file.c | buf += chars; |
buf | 243 | fs/isofs/file.c | put_fs_byte(0,buf++); |
buf | 241 | fs/isofs/inode.c | void isofs_statfs (struct super_block *sb, struct statfs *buf) |
buf | 243 | fs/isofs/inode.c | put_fs_long(ISOFS_SUPER_MAGIC, &buf->f_type); |
buf | 244 | fs/isofs/inode.c | put_fs_long(1 << ISOFS_BLOCK_BITS, &buf->f_bsize); |
buf | 245 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_nzones, &buf->f_blocks); |
buf | 246 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bfree); |
buf | 247 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bavail); |
buf | 248 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_ninodes, &buf->f_files); |
buf | 249 | 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 | 65 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 157 | fs/minix/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 159 | fs/minix/file.c | buf += chars; |
buf | 162 | fs/minix/file.c | put_fs_byte(0,buf++); |
buf | 186 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 237 | fs/minix/file.c | memcpy_fromfs(p,buf,c); |
buf | 238 | 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 | 79 | fs/msdos/file.c | static int msdos_file_read(struct inode *inode,struct file *filp,char *buf, |
buf | 98 | fs/msdos/file.c | start = buf; |
buf | 99 | fs/msdos/file.c | while ((left = MIN(inode->i_size-filp->f_pos,count-(buf-start))) > 0){ |
buf | 106 | fs/msdos/file.c | memcpy_tofs(buf,data+offset,size); |
buf | 107 | fs/msdos/file.c | buf += size; |
buf | 113 | fs/msdos/file.c | if (ch != 26) put_fs_byte(ch,buf++); |
buf | 117 | fs/msdos/file.c | return buf-start; |
buf | 123 | fs/msdos/file.c | if (start == buf) return -EIO; |
buf | 124 | fs/msdos/file.c | return buf-start; |
buf | 128 | fs/msdos/file.c | static int msdos_file_write(struct inode *inode,struct file *filp,char *buf, |
buf | 152 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
buf | 167 | fs/msdos/file.c | buf,written = size); |
buf | 168 | fs/msdos/file.c | buf += size; |
buf | 179 | fs/msdos/file.c | if ((ch = get_fs_byte(buf++)) == '\n') { |
buf | 202 | fs/msdos/file.c | return start == buf ? error : buf-start; |
buf | 192 | fs/msdos/inode.c | void msdos_statfs(struct super_block *sb,struct statfs *buf) |
buf | 196 | fs/msdos/inode.c | put_fs_long(sb->s_magic,&buf->f_type); |
buf | 197 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->cluster_size*SECTOR_SIZE,&buf->f_bsize); |
buf | 198 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->clusters,&buf->f_blocks); |
buf | 209 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bfree); |
buf | 210 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bavail); |
buf | 211 | fs/msdos/inode.c | put_fs_long(0,&buf->f_files); |
buf | 212 | fs/msdos/inode.c | put_fs_long(0,&buf->f_ffree); |
buf | 20 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
buf | 70 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
buf | 52 | fs/nfs/file.c | static int nfs_file_read(struct inode *inode, struct file *file, char *buf, |
buf | 87 | fs/nfs/file.c | memcpy_tofs(buf, data, result); |
buf | 89 | fs/nfs/file.c | buf += result; |
buf | 100 | fs/nfs/file.c | static int nfs_file_write(struct inode *inode, struct file *file, char *buf, |
buf | 129 | fs/nfs/file.c | memcpy_fromfs(data, buf, hunk); |
buf | 137 | fs/nfs/file.c | buf += hunk; |
buf | 119 | fs/nfs/inode.c | void nfs_statfs(struct super_block *sb, struct statfs *buf) |
buf | 124 | fs/nfs/inode.c | put_fs_long(NFS_SUPER_MAGIC, &buf->f_type); |
buf | 132 | fs/nfs/inode.c | put_fs_long(res.bsize, &buf->f_bsize); |
buf | 133 | fs/nfs/inode.c | put_fs_long(res.blocks, &buf->f_blocks); |
buf | 134 | fs/nfs/inode.c | put_fs_long(res.bfree, &buf->f_bfree); |
buf | 135 | fs/nfs/inode.c | put_fs_long(res.bavail, &buf->f_bavail); |
buf | 136 | fs/nfs/inode.c | put_fs_long(0, &buf->f_files); |
buf | 137 | fs/nfs/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 | 232 | fs/proc/array.c | unsigned long ptbl, *buf, *pte, *pagedir, map_nr; |
buf | 244 | fs/proc/array.c | buf = (void *)(ptbl & 0xfffff000); |
buf | 245 | fs/proc/array.c | for (pte = buf; pte < (buf + 1024); ++pte) { |
buf | 274 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 322 | 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 | 32 | fs/proc/kmsg.c | static int kmsg_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 34 | fs/proc/kmsg.c | return sys_syslog(2,buf,count); |
buf | 97 | fs/proc/link.c | char buf[64]; |
buf | 107 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
buf | 112 | fs/proc/link.c | put_fs_byte(buf[i++],buffer++); |
buf | 23 | fs/proc/mem.c | static int mem_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 43 | fs/proc/mem.c | tmp = buf; |
buf | 67 | fs/proc/mem.c | return tmp-buf; |
buf | 72 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
buf | 92 | fs/proc/mem.c | tmp = buf; |
buf | 120 | fs/proc/mem.c | if (tmp != buf) |
buf | 121 | 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 | 325 | 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 | 123 | 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 | 329 | kernel/blk_drv/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
buf | 349 | kernel/blk_drv/ll_rw_blk.c | for (i=0; i<nb; i++, buf += BLOCK_SIZE) |
buf | 367 | 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 | 265 | kernel/blk_drv/scsi/fdomain.c | #define insw( buf, count, port ) \ |
buf | 267 | kernel/blk_drv/scsi/fdomain.c | ( "cld;rep;insw"::"d" (port),"D" (buf),"c" (count):"cx","di" ) |
buf | 269 | kernel/blk_drv/scsi/fdomain.c | #define outsw( buf, count, port ) \ |
buf | 271 | kernel/blk_drv/scsi/fdomain.c | ("cld;rep;outsw"::"d" (port),"S" (buf),"c" (count):"cx","si") |
buf | 354 | kernel/blk_drv/scsi/fdomain.c | unsigned char buf[buflen]; |
buf | 483 | kernel/blk_drv/scsi/fdomain.c | SCinit.request_buffer = SCinit.buffer = buf; |
buf | 484 | kernel/blk_drv/scsi/fdomain.c | SCinit.request_bufflen = SCinit.bufflen = sizeof(buf)-1; |
buf | 499 | kernel/blk_drv/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
buf | 500 | kernel/blk_drv/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
buf | 506 | kernel/blk_drv/scsi/fdomain.c | blocks = (buf[0] << 24) | (buf[1] << 16) |
buf | 507 | kernel/blk_drv/scsi/fdomain.c | | (buf[2] << 8) | buf[3]; |
buf | 508 | kernel/blk_drv/scsi/fdomain.c | size = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7]; |
buf | 139 | kernel/blk_drv/scsi/scsi_ioctl.c | char * buf; |
buf | 161 | kernel/blk_drv/scsi/scsi_ioctl.c | buf = scsi_malloc(needed); |
buf | 162 | kernel/blk_drv/scsi/scsi_ioctl.c | if (!buf) return -ENOMEM; |
buf | 164 | kernel/blk_drv/scsi/scsi_ioctl.c | buf = NULL; |
buf | 167 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) buf, (void *) (cmd_in + cmdlen), inlen); |
buf | 174 | kernel/blk_drv/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, ((outlen > MAX_BUF) ? |
buf | 185 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_tofs ((void *) cmd_in, buf, (outlen > MAX_BUF) ? MAX_BUF : outlen); |
buf | 188 | kernel/blk_drv/scsi/scsi_ioctl.c | if (buf) scsi_free(buf, needed); |
buf | 199 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
buf | 546 | kernel/blk_drv/scsi/st.c | int st_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 599 | kernel/blk_drv/scsi/st.c | b_point = buf; |
buf | 685 | kernel/blk_drv/scsi/st.c | int st_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 820 | kernel/blk_drv/scsi/st.c | memcpy_tofs(buf, scsi_tapes[dev].buffer->b_data + |
buf | 823 | 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 | 1438 | kernel/chr_drv/console.c | char *sptr, *buf = (char *)arg; |
buf | 1441 | kernel/chr_drv/console.c | verify_area(buf,2+video_num_columns*video_num_lines); |
buf | 1442 | kernel/chr_drv/console.c | currcons = get_fs_byte(buf+1); |
buf | 1445 | kernel/chr_drv/console.c | put_fs_byte((char)(video_num_lines),buf++); |
buf | 1446 | kernel/chr_drv/console.c | put_fs_byte((char)(video_num_columns),buf++); |
buf | 1450 | kernel/chr_drv/console.c | put_fs_byte(*sptr++,buf++); |
buf | 162 | kernel/chr_drv/keyboard.c | qp->buf[qp->head]=ch; |
buf | 180 | kernel/chr_drv/keyboard.c | qp->buf[qp->head]=ch; |
buf | 297 | kernel/chr_drv/keyboard.c | char buf[] = { 0x1b, 0x4f, 0x00, 0x00 }; |
buf | 299 | kernel/chr_drv/keyboard.c | buf[2] = key; |
buf | 300 | kernel/chr_drv/keyboard.c | puts_queue(buf); |
buf | 1232 | kernel/chr_drv/keyboard.c | char buf[] = { 0x1b, '[', 0, 0, 0 }; /* must not be static */ |
buf | 1234 | kernel/chr_drv/keyboard.c | buf[2]=cur_table[sc]; |
buf | 1235 | kernel/chr_drv/keyboard.c | if (buf[2] < '9') |
buf | 1236 | kernel/chr_drv/keyboard.c | buf[3]='~'; |
buf | 1238 | kernel/chr_drv/keyboard.c | if ((buf[2] >= 'A' && buf[2] <= 'D') ? |
buf | 1241 | kernel/chr_drv/keyboard.c | buf[1]='O'; |
buf | 1242 | kernel/chr_drv/keyboard.c | puts_queue(buf); |
buf | 75 | kernel/chr_drv/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 79 | kernel/chr_drv/lp.c | char c, *temp = buf; |
buf | 89 | kernel/chr_drv/lp.c | temp = buf; |
buf | 127 | kernel/chr_drv/lp.c | return temp-buf?temp-buf:-ENOSPC; |
buf | 136 | kernel/chr_drv/lp.c | return temp-buf?temp-buf:-EIO; |
buf | 146 | kernel/chr_drv/lp.c | return temp-buf?temp-buf:-EFAULT; |
buf | 153 | kernel/chr_drv/lp.c | return temp-buf; |
buf | 22 | kernel/chr_drv/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
buf | 27 | kernel/chr_drv/mem.c | static int write_ram(struct inode * inode, struct file * file,char * buf, int count) |
buf | 32 | kernel/chr_drv/mem.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
buf | 57 | kernel/chr_drv/mem.c | memcpy_tofs(buf,(void *) pnt, count1); |
buf | 58 | kernel/chr_drv/mem.c | buf += count1; |
buf | 65 | kernel/chr_drv/mem.c | put_fs_byte(0,buf); |
buf | 66 | kernel/chr_drv/mem.c | buf++; |
buf | 71 | kernel/chr_drv/mem.c | memcpy_tofs(buf,(void *) (p - 4096),count); |
buf | 77 | kernel/chr_drv/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 90 | kernel/chr_drv/mem.c | put_fs_byte(0,buf); |
buf | 91 | kernel/chr_drv/mem.c | buf++; |
buf | 96 | kernel/chr_drv/mem.c | memcpy_tofs(buf,(void *) p,count); |
buf | 102 | kernel/chr_drv/mem.c | static int write_mem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 116 | kernel/chr_drv/mem.c | buf++; |
buf | 121 | kernel/chr_drv/mem.c | memcpy_fromfs((void *) p,buf,count); |
buf | 127 | kernel/chr_drv/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 130 | kernel/chr_drv/mem.c | char * tmp = buf; |
buf | 138 | kernel/chr_drv/mem.c | return tmp-buf; |
buf | 141 | kernel/chr_drv/mem.c | static int write_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 144 | kernel/chr_drv/mem.c | char * tmp = buf; |
buf | 152 | kernel/chr_drv/mem.c | return tmp-buf; |
buf | 155 | kernel/chr_drv/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
buf | 160 | kernel/chr_drv/mem.c | static int write_null(struct inode * inode,struct file * file,char * buf, int count) |
buf | 165 | kernel/chr_drv/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
buf | 170 | kernel/chr_drv/mem.c | put_fs_byte(0,buf); |
buf | 171 | kernel/chr_drv/mem.c | buf++; |
buf | 176 | 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 | 267 | kernel/chr_drv/serial.c | queue->buf[head++] = 0xff; |
buf | 269 | kernel/chr_drv/serial.c | queue->buf[head++] = 0; |
buf | 274 | kernel/chr_drv/serial.c | queue->buf[head++] = 0xff; |
buf | 277 | kernel/chr_drv/serial.c | queue->buf[head++] = ch; |
buf | 303 | kernel/chr_drv/serial.c | queue->buf[tail++]); |
buf | 526 | kernel/chr_drv/serial.c | serial_outp(info, UART_TX, queue->buf[tail++]); |
buf | 74 | kernel/chr_drv/tty_io.c | queue->buf[queue->head] = c; |
buf | 87 | kernel/chr_drv/tty_io.c | result = 0xff & queue->buf[queue->tail]; |
buf | 116 | kernel/chr_drv/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 121 | kernel/chr_drv/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 534 | kernel/chr_drv/tty_io.c | static int read_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
buf | 538 | kernel/chr_drv/tty_io.c | char * b=buf; |
buf | 614 | kernel/chr_drv/tty_io.c | if (b-buf >= minimum || !current->timeout) |
buf | 641 | kernel/chr_drv/tty_io.c | if ((b-buf) > 1) |
buf | 642 | kernel/chr_drv/tty_io.c | return b-buf; |
buf | 644 | kernel/chr_drv/tty_io.c | if (b-buf) |
buf | 645 | kernel/chr_drv/tty_io.c | return b-buf; |
buf | 689 | kernel/chr_drv/tty_io.c | static int write_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
buf | 692 | kernel/chr_drv/tty_io.c | char c, *b=buf; |
buf | 741 | kernel/chr_drv/tty_io.c | if (b-buf) |
buf | 742 | kernel/chr_drv/tty_io.c | return b-buf; |
buf | 750 | kernel/chr_drv/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 773 | kernel/chr_drv/tty_io.c | i = read_chan(tty,file,buf,count); |
buf | 779 | kernel/chr_drv/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 806 | 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 | 50 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
buf | 52 | 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)) |
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 | 215 | net/unix.c | upd->buf = NULL; |
buf | 238 | net/unix.c | if (upd->buf) { |
buf | 239 | net/unix.c | free_page((unsigned long)upd->buf); |
buf | 240 | net/unix.c | upd->buf = NULL; |
buf | 265 | net/unix.c | if (!(upd->buf = (char *)get_free_page(GFP_USER))) { |
buf | 589 | net/unix.c | memcpy_tofs(ubuf, upd->buf + upd->bp_tail, cando); |
buf | 667 | net/unix.c | memcpy_fromfs(pupd->buf + pupd->bp_head, ubuf, cando); |
buf | 87 | tools/build.c | char buf[1024]; |
buf | 110 | tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
buf | 113 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 115 | tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 117 | tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 119 | tools/build.c | if (((long *) buf)[3]!=0) |
buf | 121 | tools/build.c | if (((long *) buf)[4]!=0) |
buf | 123 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 125 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 127 | tools/build.c | i=read(id,buf,sizeof buf); |
buf | 131 | tools/build.c | if ((*(unsigned short *)(buf+510)) != (unsigned short)intel_short(0xAA55)) |
buf | 133 | tools/build.c | buf[508] = (char) minor_root; |
buf | 134 | tools/build.c | buf[509] = (char) major_root; |
buf | 135 | tools/build.c | i=write(1,buf,512); |
buf | 142 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 144 | tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 146 | tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 148 | tools/build.c | if (((long *) buf)[3]!=0) |
buf | 150 | tools/build.c | if (((long *) buf)[4]!=0) |
buf | 152 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 154 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 156 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
buf | 157 | tools/build.c | if (write(1,buf,c)!=c) |
buf | 164 | tools/build.c | for (c=0 ; c<sizeof(buf) ; c++) |
buf | 165 | tools/build.c | buf[c] = '\0'; |
buf | 168 | tools/build.c | if (c > sizeof(buf)) |
buf | 169 | tools/build.c | c = sizeof(buf); |
buf | 170 | tools/build.c | if (write(1,buf,c) != c) |
buf | 177 | tools/build.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 179 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 181 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
buf | 182 | tools/build.c | if (write(1,buf,c)!=c) |