taglinefilesource code
buf15fs/block_dev.cint block_write(struct inode * inode, struct file * filp, char * buf, int count)
buf49fs/block_dev.cmemcpy_fromfs(p,buf,chars);
buf51fs/block_dev.cbuf += chars;
buf59fs/block_dev.cint block_read(struct inode * inode, struct file * filp, char * buf, int count)
buf89fs/block_dev.cmemcpy_tofs(buf,p,chars);
buf91fs/block_dev.cbuf += chars;
buf329fs/buffer.cvoid brelse(struct buffer_head * buf)
buf331fs/buffer.cif (!buf)
buf333fs/buffer.cwait_on_buffer(buf);
buf334fs/buffer.cif (!(buf->b_count--))
buf465fs/exec.cchar buf[128], *cp, *interp, *i_name, *i_arg;
buf468fs/exec.cstrncpy(buf, bh->b_data+2, 127);
buf471fs/exec.cbuf[127] = '\0';
buf472fs/exec.cif (cp = strchr(buf, '\n')) {
buf474fs/exec.cfor (cp = buf; (*cp == ' ') || (*cp == '\t'); cp++);
buf76fs/ext/file.cstatic int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count)
buf140fs/ext/file.cmemcpy_tofs(buf,offset+(*bhe)->b_data,chars);
buf142fs/ext/file.cbuf += chars;
buf145fs/ext/file.cput_fs_byte(0,buf++);
buf160fs/ext/file.cstatic int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count)
buf209fs/ext/file.cmemcpy_fromfs(p,buf,c);
buf210fs/ext/file.cbuf += c;
buf197fs/ext/inode.cvoid ext_statfs (struct super_block *sb, struct statfs *buf)
buf201fs/ext/inode.cput_fs_long(EXT_SUPER_MAGIC, &buf->f_type);
buf202fs/ext/inode.cput_fs_long(1024, &buf->f_bsize);
buf203fs/ext/inode.cput_fs_long(sb->u.ext_sb.s_nzones << sb->u.ext_sb.s_log_zone_size, &buf->f_blocks);
buf205fs/ext/inode.cput_fs_long(tmp, &buf->f_bfree);
buf206fs/ext/inode.cput_fs_long(tmp, &buf->f_bavail);
buf207fs/ext/inode.cput_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files);
buf208fs/ext/inode.cput_fs_long(ext_count_free_inodes(sb), &buf->f_ffree);
buf76fs/minix/file.cint minix_file_read(struct inode * inode, struct file * filp, char * buf, int count)
buf140fs/minix/file.cmemcpy_tofs(buf,offset+(*bhe)->b_data,chars);
buf142fs/minix/file.cbuf += chars;
buf145fs/minix/file.cput_fs_byte(0,buf++);
buf160fs/minix/file.cstatic int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count)
buf209fs/minix/file.cmemcpy_fromfs(p,buf,c);
buf210fs/minix/file.cbuf += c;
buf118fs/minix/inode.cvoid minix_statfs (struct super_block *sb, struct statfs *buf)
buf122fs/minix/inode.cput_fs_long(MINIX_SUPER_MAGIC, &buf->f_type);
buf123fs/minix/inode.cput_fs_long(1024, &buf->f_bsize);
buf124fs/minix/inode.cput_fs_long(sb->u.minix_sb.s_nzones << sb->u.minix_sb.s_log_zone_size, &buf->f_blocks);
buf126fs/minix/inode.cput_fs_long(tmp, &buf->f_bfree);
buf127fs/minix/inode.cput_fs_long(tmp, &buf->f_bavail);
buf128fs/minix/inode.cput_fs_long(sb->u.minix_sb.s_ninodes, &buf->f_files);
buf129fs/minix/inode.cput_fs_long(minix_count_free_inodes(sb), &buf->f_ffree);
buf17fs/msdos/dir.cstatic int msdos_dummy_read(struct inode *inode,struct file *filp,char *buf,
buf54fs/msdos/dir.cstatic int msdos_dummy_read(struct inode *inode,struct file *filp,char *buf,
buf22fs/msdos/file.cstatic int msdos_file_read(struct inode *inode,struct file *filp,char *buf,
buf24fs/msdos/file.cstatic int msdos_file_write(struct inode *inode,struct file *filp,char *buf,
buf76fs/msdos/file.cstatic int msdos_file_read(struct inode *inode,struct file *filp,char *buf,
buf95fs/msdos/file.cstart = buf;
buf96fs/msdos/file.cwhile (left = MIN(inode->i_size-filp->f_pos,count-(buf-start))) {
buf103fs/msdos/file.cmemcpy_tofs(buf,data+offset,size);
buf104fs/msdos/file.cbuf += size;
buf110fs/msdos/file.cif (ch != 26) put_fs_byte(ch,buf++);
buf114fs/msdos/file.creturn buf-start;
buf120fs/msdos/file.cif (start == buf) return -EIO;
buf121fs/msdos/file.creturn buf-start;
buf125fs/msdos/file.cstatic int msdos_file_write(struct inode *inode,struct file *filp,char *buf,
buf149fs/msdos/file.cfor (start = buf; count || carry; count -= size) {
buf161fs/msdos/file.cbuf,written = size);
buf162fs/msdos/file.cbuf += size;
buf173fs/msdos/file.cif ((ch = get_fs_byte(buf++)) == '\n') {
buf196fs/msdos/file.creturn start == buf ? error : buf-start;
buf157fs/msdos/inode.cvoid msdos_statfs(struct super_block *sb,struct statfs *buf)
buf162fs/msdos/inode.cput_fs_long(sb->s_magic,&buf->f_type);
buf163fs/msdos/inode.cput_fs_long(SECTOR_SIZE,&buf->f_bsize);
buf164fs/msdos/inode.cput_fs_long(MSDOS_SB(sb)->clusters*cluster_size,&buf->f_blocks);
buf169fs/msdos/inode.cput_fs_long(free,&buf->f_bfree);
buf170fs/msdos/inode.cput_fs_long(free,&buf->f_bavail);
buf171fs/msdos/inode.cput_fs_long(0,&buf->f_files);
buf172fs/msdos/inode.cput_fs_long(0,&buf->f_ffree);
buf33fs/open.cint sys_statfs(const char * path, struct statfs * buf)
buf37fs/open.cverify_area(buf, sizeof(struct statfs));
buf44fs/open.cinode->i_sb->s_op->statfs(inode->i_sb, buf);
buf49fs/open.cint sys_fstatfs(unsigned int fd, struct statfs * buf)
buf54fs/open.cverify_area(buf, sizeof(struct statfs));
buf61fs/open.cinode->i_sb->s_op->statfs(inode->i_sb, buf);
buf16fs/pipe.cstatic int pipe_read(struct inode * inode, struct file * filp, char * buf, int count)
buf35fs/pipe.cmemcpy_tofs(buf, (char *)inode->i_size+PIPE_TAIL(*inode), chars );
buf40fs/pipe.cbuf += chars;
buf46fs/pipe.cstatic int pipe_write(struct inode * inode, struct file * filp, char * buf, int count)
buf78fs/pipe.cmemcpy_fromfs((char *)inode->i_size+PIPE_HEAD(*inode), buf, chars );
buf83fs/pipe.cbuf += chars;
buf101fs/pipe.cstatic int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count)
buf68fs/read_write.cint sys_read(unsigned int fd,char * buf,unsigned int count)
buf79fs/read_write.cverify_area(buf,count);
buf81fs/read_write.creturn file->f_op->read(inode,file,buf,count);
buf85fs/read_write.cint sys_write(unsigned int fd,char * buf,unsigned int count)
buf97fs/read_write.creturn file->f_op->write(inode,file,buf,count);
buf148fs/stat.cint sys_readlink(const char * path, char * buf, int bufsiz)
buf154fs/stat.cverify_area(buf,bufsiz);
buf161fs/stat.creturn inode->i_op->readlink(inode,buf,bufsiz);
buf210include/linux/fs.hvoid (*statfs) (struct super_block *sb, struct statfs *buf);
buf260include/linux/fs.hextern void brelse(struct buffer_head * buf);
buf51include/linux/mm.hextern void rw_swap_page(int rw, unsigned int nr, char * buf);
buf53include/linux/mm.h#define read_swap_page(nr,buf) \
buf54include/linux/mm.hrw_swap_page(READ,(nr),(buf))
buf55include/linux/mm.h#define write_swap_page(nr,buf) \
buf56include/linux/mm.hrw_swap_page(WRITE,(nr),(buf))
buf154include/linux/msdos_fs.hextern void msdos_statfs(struct super_block *sb,struct statfs *buf);
buf68include/linux/tty.hunsigned char buf[TTY_BUF_SIZE];
buf99include/linux/tty.h#define LAST(a) ((a)->buf[(TTY_BUF_SIZE-1)&((a)->head-1)])
buf38init/main.cstatic inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
buf80kernel/blk_drv/hd.c#define port_read(port,buf,nr) \
buf81kernel/blk_drv/hd.c__asm__("cld;rep;insw"::"d" (port),"D" (buf),"c" (nr):"cx","di")
buf83kernel/blk_drv/hd.c#define port_write(port,buf,nr) \
buf84kernel/blk_drv/hd.c__asm__("cld;rep;outsw"::"d" (port),"S" (buf),"c" (nr):"cx","si")
buf308kernel/blk_drv/ll_rw_blk.cvoid ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf)
buf328kernel/blk_drv/ll_rw_blk.cfor (i=0; i<nb; i++, buf += BLOCK_SIZE)
buf346kernel/blk_drv/ll_rw_blk.creq->buffer = buf;
buf402kernel/blk_drv/scsi/7000fasst.cunchar buf[8];
buf406kernel/blk_drv/scsi/7000fasst.cfor (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87;
buf410kernel/blk_drv/scsi/7000fasst.cif (wd7000fasst_command(i, cmd, buf, sizeof(buf))) rstat++;
buf415kernel/blk_drv/scsi/7000fasst.ci, xscsi2int(buf+4), xscsi2int(buf), xscsi2int(buf+4)*xscsi2int(buf));
buf408kernel/blk_drv/scsi/aha1542.cunchar buf[8];
buf412kernel/blk_drv/scsi/aha1542.cfor (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87;
buf414kernel/blk_drv/scsi/aha1542.cif (!aha1542_command(i, cmd, buf, sizeof(buf))) {
buf416kernel/blk_drv/scsi/aha1542.ci, xscsi2int(buf+4), xscsi2int(buf));
buf232kernel/blk_drv/scsi/fdomain.c#define insw( buf, count, port ) \
buf234kernel/blk_drv/scsi/fdomain.c( "cld;rep;insw"::"d" (port),"D" (buf),"c" (count):"cx","di" )
buf236kernel/blk_drv/scsi/fdomain.c#define outsw( buf, count, port) \
buf238kernel/blk_drv/scsi/fdomain.c("cld;rep;outsw"::"d" (port),"S" (buf),"c" (count):"cx","si")
buf346kernel/blk_drv/scsi/fdomain.cunsigned char buf[256];
buf470kernel/blk_drv/scsi/fdomain.cretcode = fdomain_16x0_command( i, do_request_sense, buf, 255 );
buf472kernel/blk_drv/scsi/fdomain.cretcode = fdomain_16x0_command( i, do_inquiry, buf, 255 );
buf475kernel/blk_drv/scsi/fdomain.cfor (j = 8; j < 32; j++) printk( "%c", buf[j] );
buf476kernel/blk_drv/scsi/fdomain.cretcode = fdomain_16x0_command( i, do_read_capacity, buf, 255 );
buf480kernel/blk_drv/scsi/fdomain.cblocks = (buf[0] << 24) | (buf[1] << 16)
buf481kernel/blk_drv/scsi/fdomain.c| (buf[2] << 8) | buf[3];
buf482kernel/blk_drv/scsi/fdomain.csize = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7];
buf75kernel/blk_drv/scsi/scsi_ioctl.cchar buf[MAX_BUF];
buf91kernel/blk_drv/scsi/scsi_ioctl.cmemcpy_fromfs ((void *) buf,  (void *) (cmd_in + cmdlen),  inlen);
buf108kernel/blk_drv/scsi/scsi_ioctl.cscsi_do_cmd(host,  dev->id,  cmd,  buf,  ((outlen > MAX_BUF) ? 
buf110kernel/blk_drv/scsi/scsi_ioctl.cbuf,  MAX_RETRIES);
buf116kernel/blk_drv/scsi/scsi_ioctl.cmemcpy_tofs ((void *) cmd_in,  buf,  (outlen > MAX_BUF) ? MAX_BUF  : outlen);
buf126kernel/blk_drv/scsi/scsi_ioctl.cprintk("%02x ", buf[i]);
buf1447kernel/chr_drv/console.cchar *sptr, *buf = (char *)arg;
buf1450kernel/chr_drv/console.cverify_area(buf,2+video_num_columns*video_num_lines);
buf1451kernel/chr_drv/console.ccurrcons = get_fs_byte(buf+1);
buf1454kernel/chr_drv/console.cput_fs_byte((char)(video_num_lines),buf++);  
buf1455kernel/chr_drv/console.cput_fs_byte((char)(video_num_columns),buf++);
buf1459kernel/chr_drv/console.cput_fs_byte(*sptr++,buf++);  
buf131kernel/chr_drv/keyboard.cqp->buf[qp->head]=ch;
buf144kernel/chr_drv/keyboard.cqp->buf[qp->head]=ch;
buf276kernel/chr_drv/keyboard.cchar buf[] = { 0x1b, 0x4f, 0x00, 0x00 };
buf278kernel/chr_drv/keyboard.cbuf[2] = key;
buf279kernel/chr_drv/keyboard.cputs_queue(buf);
buf1107kernel/chr_drv/keyboard.cchar buf[] = { 0x1b, '[', 0, 0, 0 };          /* must not be static */
buf1109kernel/chr_drv/keyboard.cbuf[2]=cur_table[sc];
buf1110kernel/chr_drv/keyboard.cif (buf[2] < '9')
buf1111kernel/chr_drv/keyboard.cbuf[3]='~';
buf1112kernel/chr_drv/keyboard.cif ((buf[2] >= 'A' && buf[2] <= 'D') ? ckmode : kapplic)
buf1113kernel/chr_drv/keyboard.cbuf[1]='O';
buf1114kernel/chr_drv/keyboard.cputs_queue(buf);
buf49kernel/chr_drv/lp.cstatic int lp_write(struct inode * inode, struct file * file, char * buf, int count)
buf53kernel/chr_drv/lp.cchar c, *temp = buf;
buf55kernel/chr_drv/lp.ctemp = buf;
buf62kernel/chr_drv/lp.creturn temp-buf?temp-buf:-ENOSPC;
buf68kernel/chr_drv/lp.creturn temp-buf?temp-buf:-EFAULT;
buf75kernel/chr_drv/lp.creturn temp-buf?temp-buf:-EIO;
buf79kernel/chr_drv/lp.creturn temp-buf;
buf82kernel/chr_drv/lp.cstatic int lp_read(struct inode * inode, struct file * file, char * buf, int count)
buf17kernel/chr_drv/mem.cstatic int read_ram(struct inode * inode, struct file * file,char * buf, int count)
buf22kernel/chr_drv/mem.cstatic int write_ram(struct inode * inode, struct file * file,char * buf, int count)
buf27kernel/chr_drv/mem.cstatic int read_mem(struct inode * inode, struct file * file,char * buf, int count)
buf37kernel/chr_drv/mem.ctmp = buf;
buf61kernel/chr_drv/mem.creturn tmp-buf;
buf64kernel/chr_drv/mem.cstatic int write_mem(struct inode * inode, struct file * file,char * buf, int count)
buf74kernel/chr_drv/mem.ctmp = buf;
buf102kernel/chr_drv/mem.cif (tmp != buf)
buf103kernel/chr_drv/mem.creturn tmp-buf;
buf109kernel/chr_drv/mem.cstatic int read_kmem(struct inode * inode, struct file * file,char * buf, int count)
buf119kernel/chr_drv/mem.cmemcpy_tofs(buf,(void *) p,count);
buf124kernel/chr_drv/mem.cstatic int write_kmem(struct inode * inode, struct file * file,char * buf, int count)
buf134kernel/chr_drv/mem.cmemcpy_fromfs((void *) p,buf,count);
buf139kernel/chr_drv/mem.cstatic int read_port(struct inode * inode,struct file * file,char * buf, int count)
buf142kernel/chr_drv/mem.cchar * tmp = buf;
buf150kernel/chr_drv/mem.creturn tmp-buf;
buf153kernel/chr_drv/mem.cstatic int write_port(struct inode * inode,struct file * file,char * buf, int count)
buf156kernel/chr_drv/mem.cchar * tmp = buf;
buf164kernel/chr_drv/mem.creturn tmp-buf;
buf167kernel/chr_drv/mem.cstatic int read_zero(struct inode *node,struct file *file,char *buf,int count)
buf172kernel/chr_drv/mem.cput_fs_byte(0,buf);
buf173kernel/chr_drv/mem.cbuf++;
buf203kernel/chr_drv/mem.cstatic int mem_read(struct inode * inode, struct file * file, char * buf, int count)
buf207kernel/chr_drv/mem.creturn read_ram(inode,file,buf,count);
buf209kernel/chr_drv/mem.creturn read_mem(inode,file,buf,count);
buf211kernel/chr_drv/mem.creturn read_kmem(inode,file,buf,count);
buf215kernel/chr_drv/mem.creturn read_port(inode,file,buf,count);
buf217kernel/chr_drv/mem.creturn read_zero(inode,file,buf,count);
buf223kernel/chr_drv/mem.cstatic int mem_write(struct inode * inode, struct file * file, char * buf, int count)
buf227kernel/chr_drv/mem.creturn write_ram(inode,file,buf,count);
buf229kernel/chr_drv/mem.creturn write_mem(inode,file,buf,count);
buf231kernel/chr_drv/mem.creturn write_kmem(inode,file,buf,count);
buf235kernel/chr_drv/mem.creturn write_port(inode,file,buf,count);
buf75kernel/chr_drv/serial.cc = queue->buf[queue->tail];
buf98kernel/chr_drv/serial.cqueue->buf[head] = inb(port);
buf65kernel/chr_drv/tty_io.cqueue->buf[queue->head] = c;
buf78kernel/chr_drv/tty_io.cresult = 0xff & queue->buf[queue->tail];
buf304kernel/chr_drv/tty_io.cstatic int read_chan(unsigned int channel, struct file * file, char * buf, int nr)
buf308kernel/chr_drv/tty_io.cchar * b=buf;
buf364kernel/chr_drv/tty_io.cif (b-buf >= minimum || !current->timeout)
buf382kernel/chr_drv/tty_io.cif (b-buf)
buf383kernel/chr_drv/tty_io.creturn b-buf;
buf391kernel/chr_drv/tty_io.cstatic int write_chan(unsigned int channel, struct file * file, char * buf, int nr)
buf394kernel/chr_drv/tty_io.cchar c, *b=buf;
buf452kernel/chr_drv/tty_io.cif (b-buf)
buf453kernel/chr_drv/tty_io.creturn b-buf;
buf461kernel/chr_drv/tty_io.cstatic int tty_read(struct inode * inode, struct file * file, char * buf, int count)
buf469kernel/chr_drv/tty_io.ci = read_chan(MINOR(file->f_rdev),file,buf,count);
buf475kernel/chr_drv/tty_io.cstatic int tty_write(struct inode * inode, struct file * file, char * buf, int count)
buf483kernel/chr_drv/tty_io.ci = write_chan(MINOR(file->f_rdev),file,buf,count);
buf16kernel/printk.cstatic char buf[1024];
buf18kernel/printk.cextern int vsprintf(char * buf, const char * fmt, va_list args);
buf26kernel/printk.cint sys_syslog(int type, char * buf, int len)
buf51kernel/printk.cif (!buf || len < 0)
buf55kernel/printk.cverify_area(buf,len);
buf72kernel/printk.cput_fs_byte(c,buf);
buf73kernel/printk.cbuf++;
buf89kernel/printk.ci=vsprintf(buf,fmt,args);
buf93kernel/printk.c*p = buf[j];
buf101kernel/printk.cconsole_print(buf);
buf93kernel/vsprintf.cint vsprintf(char *buf, const char *fmt, va_list args)
buf108kernel/vsprintf.cfor (str=buf ; *fmt ; ++fmt) {
buf219kernel/vsprintf.c*ip = (str - buf);
buf233kernel/vsprintf.creturn str-buf;
buf11lib/write.c_syscall3(int,write,int,fd,const char *,buf,off_t,count)
buf50mm/swap.cvoid rw_swap_page(int rw, unsigned int nr, char * buf)
buf61mm/swap.cll_rw_page(rw,swap_device,nr,buf);
buf72mm/swap.cll_rw_swap_file(rw,swap_file->i_dev, zones,4,buf);
buf42net/socket.cstatic int sock_read(struct inode *inode, struct file *file, char *buf,
buf44net/socket.cstatic int sock_write(struct inode *inode, struct file *file, char *buf,
buf23net/unix.cchar *buf;
buf82net/unix.cchar buf[sizeof(sockun->sun_path) + 1];
buf87net/unix.celse if (sockaddr_len <= 0 || sockaddr_len >= sizeof(buf)-1)
buf90net/unix.cmemcpy(buf, sockun->sun_path, sockaddr_len);
buf91net/unix.cbuf[sockaddr_len] = '\0';
buf92net/unix.cprintk("sockaddr_un: '%s'[%d]\n", buf,
buf124net/unix.cupd->buf = NULL;
buf147net/unix.cif (upd->buf) {
buf148net/unix.cfree_page((unsigned long)upd->buf);
buf149net/unix.cupd->buf = NULL;
buf174net/unix.cif (!(upd->buf = (char *)get_free_page(GFP_USER))) {
buf434net/unix.cmemcpy_tofs(ubuf, upd->buf + upd->bp_tail, cando);
buf512net/unix.cmemcpy_fromfs(pupd->buf + pupd->bp_head, ubuf, cando);
buf60tools/build.cchar buf[1024];
buf89tools/build.cfor (i=0;i<sizeof buf; i++) buf[i]=0;
buf92tools/build.cif (read(id,buf,MINIX_HEADER) != MINIX_HEADER)
buf94tools/build.cif (((long *) buf)[0]!=0x04100301)
buf96tools/build.cif (((long *) buf)[1]!=MINIX_HEADER)
buf98tools/build.cif (((long *) buf)[3]!=0)
buf100tools/build.cif (((long *) buf)[4]!=0)
buf102tools/build.cif (((long *) buf)[5] != 0)
buf104tools/build.cif (((long *) buf)[7] != 0)
buf106tools/build.ci=read(id,buf,sizeof buf);
buf110tools/build.cif ((*(unsigned short *)(buf+510)) != 0xAA55)
buf112tools/build.cbuf[508] = (char) minor_root;
buf113tools/build.cbuf[509] = (char) major_root;  
buf114tools/build.ci=write(1,buf,512);
buf121tools/build.cif (read(id,buf,MINIX_HEADER) != MINIX_HEADER)
buf123tools/build.cif (((long *) buf)[0]!=0x04100301)
buf125tools/build.cif (((long *) buf)[1]!=MINIX_HEADER)
buf127tools/build.cif (((long *) buf)[3]!=0)
buf129tools/build.cif (((long *) buf)[4]!=0)
buf131tools/build.cif (((long *) buf)[5] != 0)
buf133tools/build.cif (((long *) buf)[7] != 0)
buf135tools/build.cfor (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c )
buf136tools/build.cif (write(1,buf,c)!=c)
buf143tools/build.cfor (c=0 ; c<sizeof(buf) ; c++)
buf144tools/build.cbuf[c] = '\0';
buf147tools/build.cif (c > sizeof(buf))
buf148tools/build.cc = sizeof(buf);
buf149tools/build.cif (write(1,buf,c) != c)
buf156tools/build.cif (read(id,buf,GCC_HEADER) != GCC_HEADER)
buf158tools/build.cif (((long *) buf)[5] != 0)
buf160tools/build.cfor (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c )
buf161tools/build.cif (write(1,buf,c)!=c)