taglinefilesource code
buf16fs/block_dev.cint block_write(struct inode * inode, struct file * filp, char * buf, int count)
buf50fs/block_dev.cmemcpy_fromfs(p,buf,chars);
buf52fs/block_dev.cbuf += chars;
buf60fs/block_dev.cint block_read(struct inode * inode, struct file * filp, char * buf, int count)
buf90fs/block_dev.cmemcpy_tofs(buf,p,chars);
buf92fs/block_dev.cbuf += chars;
buf309fs/buffer.cvoid brelse(struct buffer_head * buf)
buf311fs/buffer.cif (!buf)
buf313fs/buffer.cwait_on_buffer(buf);
buf314fs/buffer.cif (!(buf->b_count--))
buf438fs/exec.cchar buf[128], *cp, *interp, *i_name, *i_arg;
buf441fs/exec.cstrncpy(buf, bh->b_data+2, 127);
buf444fs/exec.cbuf[127] = '\0';
buf445fs/exec.cif (cp = strchr(buf, '\n')) {
buf447fs/exec.cfor (cp = buf; (*cp == ' ') || (*cp == '\t'); cp++);
buf79fs/ext/file.cstatic int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count)
buf143fs/ext/file.cmemcpy_tofs(buf,offset+(*bhe)->b_data,chars);
buf145fs/ext/file.cbuf += chars;
buf148fs/ext/file.cput_fs_byte(0,buf++);
buf161fs/ext/file.cstatic int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count)
buf210fs/ext/file.cmemcpy_fromfs(p,buf,c);
buf211fs/ext/file.cbuf += c;
buf195fs/ext/inode.cvoid ext_statfs (struct super_block *sb, struct statfs *buf)
buf199fs/ext/inode.cput_fs_long(EXT_SUPER_MAGIC, &buf->f_type);
buf200fs/ext/inode.cput_fs_long(1024, &buf->f_bsize);
buf201fs/ext/inode.cput_fs_long(sb->s_nzones << sb->s_log_zone_size, &buf->f_blocks);
buf203fs/ext/inode.cput_fs_long(tmp, &buf->f_bfree);
buf204fs/ext/inode.cput_fs_long(tmp, &buf->f_bavail);
buf205fs/ext/inode.cput_fs_long(sb->s_ninodes, &buf->f_files);
buf206fs/ext/inode.cput_fs_long(ext_count_free_inodes(sb), &buf->f_ffree);
buf79fs/minix/file.cint minix_file_read(struct inode * inode, struct file * filp, char * buf, int count)
buf143fs/minix/file.cmemcpy_tofs(buf,offset+(*bhe)->b_data,chars);
buf145fs/minix/file.cbuf += chars;
buf148fs/minix/file.cput_fs_byte(0,buf++);
buf161fs/minix/file.cstatic int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count)
buf210fs/minix/file.cmemcpy_fromfs(p,buf,c);
buf211fs/minix/file.cbuf += c;
buf116fs/minix/inode.cvoid minix_statfs (struct super_block *sb, struct statfs *buf)
buf120fs/minix/inode.cput_fs_long(MINIX_SUPER_MAGIC, &buf->f_type);
buf121fs/minix/inode.cput_fs_long(1024, &buf->f_bsize);
buf122fs/minix/inode.cput_fs_long(sb->s_nzones << sb->s_log_zone_size, &buf->f_blocks);
buf124fs/minix/inode.cput_fs_long(tmp, &buf->f_bfree);
buf125fs/minix/inode.cput_fs_long(tmp, &buf->f_bavail);
buf126fs/minix/inode.cput_fs_long(sb->s_ninodes, &buf->f_files);
buf127fs/minix/inode.cput_fs_long(minix_count_free_inodes(sb), &buf->f_ffree);
buf34fs/open.cint sys_statfs(const char * path, struct statfs * buf)
buf38fs/open.cverify_area(buf, sizeof(struct statfs));
buf45fs/open.cinode->i_sb->s_op->statfs(inode->i_sb, buf);
buf50fs/open.cint sys_fstatfs(unsigned int fd, struct statfs * buf)
buf55fs/open.cverify_area(buf, sizeof(struct statfs));
buf62fs/open.cinode->i_sb->s_op->statfs(inode->i_sb, buf);
buf17fs/pipe.cstatic int pipe_read(struct inode * inode, struct file * filp, char * buf, int count)
buf36fs/pipe.cmemcpy_tofs(buf, (char *)inode->i_size+PIPE_TAIL(*inode), chars );
buf41fs/pipe.cbuf += chars;
buf47fs/pipe.cstatic int pipe_write(struct inode * inode, struct file * filp, char * buf, int count)
buf79fs/pipe.cmemcpy_fromfs((char *)inode->i_size+PIPE_HEAD(*inode), buf, chars );
buf84fs/pipe.cbuf += chars;
buf102fs/pipe.cstatic int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count)
buf69fs/read_write.cint sys_read(unsigned int fd,char * buf,unsigned int count)
buf80fs/read_write.cverify_area(buf,count);
buf82fs/read_write.creturn file->f_op->read(inode,file,buf,count);
buf86fs/read_write.cint sys_write(unsigned int fd,char * buf,unsigned int count)
buf98fs/read_write.creturn file->f_op->write(inode,file,buf,count);
buf149fs/stat.cint sys_readlink(const char * path, char * buf, int bufsiz)
buf155fs/stat.cverify_area(buf,bufsiz);
buf162fs/stat.creturn inode->i_op->readlink(inode,buf,bufsiz);
buf198include/linux/fs.hvoid (*statfs) (struct super_block *sb, struct statfs *buf);
buf243include/linux/fs.hextern void brelse(struct buffer_head * buf);
buf13include/linux/mm.hextern void rw_swap_page(int rw, unsigned int nr, char * buf);
buf15include/linux/mm.h#define read_swap_page(nr,buf) \
buf16include/linux/mm.hrw_swap_page(READ,(nr),(buf))
buf17include/linux/mm.h#define write_swap_page(nr,buf) \
buf18include/linux/mm.hrw_swap_page(WRITE,(nr),(buf))
buf34include/linux/tty.hunsigned char buf[TTY_BUF_SIZE];
buf65include/linux/tty.h#define LAST(a) ((a)->buf[(TTY_BUF_SIZE-1)&((a)->head-1)])
buf121include/unistd.hint read(int fildes, char * buf, off_t count);
buf143include/unistd.hint write(int fildes, const char * buf, off_t count);
buf40init/main.cstatic inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
buf79kernel/blk_drv/hd.c#define port_read(port,buf,nr) \
buf80kernel/blk_drv/hd.c__asm__("cld;rep;insw"::"d" (port),"D" (buf),"c" (nr):"cx","di")
buf82kernel/blk_drv/hd.c#define port_write(port,buf,nr) \
buf83kernel/blk_drv/hd.c__asm__("cld;rep;outsw"::"d" (port),"S" (buf),"c" (nr):"cx","si")
buf260kernel/blk_drv/ll_rw_blk.cvoid ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf)
buf276kernel/blk_drv/ll_rw_blk.cfor (i=0; i<nb; i++, buf += BLOCK_SIZE)
buf293kernel/blk_drv/ll_rw_blk.creq->buffer = 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));
buf73kernel/blk_drv/scsi/scsi_ioctl.cchar buf[MAX_BUF];
buf89kernel/blk_drv/scsi/scsi_ioctl.cmemcpy_fromfs ((void *) buf,  (void *) (cmd_in + cmdlen), inlen);
buf106kernel/blk_drv/scsi/scsi_ioctl.cscsi_do_cmd(host,  dev->id, cmd, buf, ((outlen > MAX_BUF) ? 
buf108kernel/blk_drv/scsi/scsi_ioctl.cbuf, MAX_RETRIES);
buf114kernel/blk_drv/scsi/scsi_ioctl.cmemcpy_tofs (buffer, buf, (outlen > MAX_BUF) ? MAX_BUF  : outlen);
buf124kernel/blk_drv/scsi/scsi_ioctl.cprintk("%02x ", buf[i]);
buf1452kernel/chr_drv/console.cchar *sptr, *buf = (char *)arg;
buf1455kernel/chr_drv/console.cverify_area(buf,2+video_num_columns*video_num_lines);
buf1456kernel/chr_drv/console.ccurrcons = get_fs_byte(buf+1);
buf1459kernel/chr_drv/console.cput_fs_byte((char)(video_num_lines),buf++);  
buf1460kernel/chr_drv/console.cput_fs_byte((char)(video_num_columns),buf++);
buf1464kernel/chr_drv/console.cput_fs_byte(*sptr++,buf++);  
buf126kernel/chr_drv/keyboard.cqp->buf[qp->head]=ch;
buf140kernel/chr_drv/keyboard.cqp->buf[qp->head]=ch;
buf256kernel/chr_drv/keyboard.cchar buf[] = { 0x1b, 0x4f, 0x00, 0x00 };
buf258kernel/chr_drv/keyboard.cbuf[2] = key;
buf259kernel/chr_drv/keyboard.cputs_queue(buf);
buf946kernel/chr_drv/keyboard.cchar buf[] = { 0x1b, '[', 0, 0, 0 };          /* must not be static */
buf948kernel/chr_drv/keyboard.cbuf[2]=cur_table[sc];
buf949kernel/chr_drv/keyboard.cif (buf[2] < '9')
buf950kernel/chr_drv/keyboard.cbuf[3]='~';
buf951kernel/chr_drv/keyboard.cif ((buf[2] >= 'A' && buf[2] <= 'D') ? ckmode : kapplic)
buf952kernel/chr_drv/keyboard.cbuf[1]='O';
buf953kernel/chr_drv/keyboard.cputs_queue(buf);
buf50kernel/chr_drv/lp.cstatic int lp_write(struct inode * inode, struct file * file, char * buf, int count)
buf54kernel/chr_drv/lp.cchar c, *temp = buf;
buf56kernel/chr_drv/lp.ctemp = buf;
buf63kernel/chr_drv/lp.creturn temp-buf?temp-buf:-ENOSPC;
buf69kernel/chr_drv/lp.creturn temp-buf?temp-buf:-EFAULT;
buf76kernel/chr_drv/lp.creturn temp-buf?temp-buf:-EIO;
buf80kernel/chr_drv/lp.creturn temp-buf;
buf83kernel/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;
buf96kernel/chr_drv/mem.creturn tmp-buf;
buf99kernel/chr_drv/mem.cstatic int read_kmem(struct inode * inode, struct file * file,char * buf, int count)
buf109kernel/chr_drv/mem.cmemcpy_tofs(buf,(void *) p,count);
buf114kernel/chr_drv/mem.cstatic int write_kmem(struct inode * inode, struct file * file,char * buf, int count)
buf124kernel/chr_drv/mem.cmemcpy_fromfs((void *) p,buf,count);
buf129kernel/chr_drv/mem.cstatic int read_port(struct inode * inode,struct file * file,char * buf, int count)
buf132kernel/chr_drv/mem.cchar * tmp = buf;
buf140kernel/chr_drv/mem.creturn tmp-buf;
buf143kernel/chr_drv/mem.cstatic int write_port(struct inode * inode,struct file * file,char * buf, int count)
buf146kernel/chr_drv/mem.cchar * tmp = buf;
buf154kernel/chr_drv/mem.creturn tmp-buf;
buf157kernel/chr_drv/mem.cstatic int read_zero(struct inode *node,struct file *file,char *buf,int count)
buf162kernel/chr_drv/mem.cput_fs_byte(0,buf);
buf163kernel/chr_drv/mem.cbuf++;
buf193kernel/chr_drv/mem.cstatic int mem_read(struct inode * inode, struct file * file, char * buf, int count)
buf197kernel/chr_drv/mem.creturn read_ram(inode,file,buf,count);
buf199kernel/chr_drv/mem.creturn read_mem(inode,file,buf,count);
buf201kernel/chr_drv/mem.creturn read_kmem(inode,file,buf,count);
buf205kernel/chr_drv/mem.creturn read_port(inode,file,buf,count);
buf207kernel/chr_drv/mem.creturn read_zero(inode,file,buf,count);
buf213kernel/chr_drv/mem.cstatic int mem_write(struct inode * inode, struct file * file, char * buf, int count)
buf217kernel/chr_drv/mem.creturn write_ram(inode,file,buf,count);
buf219kernel/chr_drv/mem.creturn write_mem(inode,file,buf,count);
buf221kernel/chr_drv/mem.creturn write_kmem(inode,file,buf,count);
buf225kernel/chr_drv/mem.creturn write_port(inode,file,buf,count);
buf71kernel/chr_drv/tty_io.cqueue->buf[queue->head] = c;
buf84kernel/chr_drv/tty_io.cresult = 0xff & queue->buf[queue->tail];
buf299kernel/chr_drv/tty_io.cstatic int read_chan(unsigned int channel, struct file * file, char * buf, int nr)
buf304kernel/chr_drv/tty_io.cchar * b=buf;
buf377kernel/chr_drv/tty_io.cif (L_CANON(tty) || b-buf >= minimum)
buf387kernel/chr_drv/tty_io.cif (b-buf)
buf388kernel/chr_drv/tty_io.creturn b-buf;
buf396kernel/chr_drv/tty_io.cstatic int write_chan(unsigned int channel, struct file * file, char * buf, int nr)
buf399kernel/chr_drv/tty_io.cchar c, *b=buf;
buf453kernel/chr_drv/tty_io.cif (b-buf)
buf454kernel/chr_drv/tty_io.creturn b-buf;
buf460kernel/chr_drv/tty_io.cstatic int tty_read(struct inode * inode, struct file * file, char * buf, int count)
buf464kernel/chr_drv/tty_io.ci = read_chan(current->tty,file,buf,count);
buf470kernel/chr_drv/tty_io.cstatic int ttyx_read(struct inode * inode, struct file * file, char * buf, int count)
buf474kernel/chr_drv/tty_io.ci = read_chan(MINOR(inode->i_rdev),file,buf,count);
buf480kernel/chr_drv/tty_io.cstatic int tty_write(struct inode * inode, struct file * file, char * buf, int count)
buf484kernel/chr_drv/tty_io.ci = write_chan(current->tty,file,buf,count);
buf490kernel/chr_drv/tty_io.cstatic int ttyx_write(struct inode * inode, struct file * file, char * buf, int count)
buf494kernel/chr_drv/tty_io.ci = write_chan(MINOR(inode->i_rdev),file,buf,count);
buf17kernel/printk.cstatic char buf[1024];
buf19kernel/printk.cextern int vsprintf(char * buf, const char * fmt, va_list args);
buf27kernel/printk.cint sys_syslog(int type, char * buf, int len)
buf52kernel/printk.cif (!buf || len < 0)
buf56kernel/printk.cverify_area(buf,len);
buf73kernel/printk.cput_fs_byte(c,buf);
buf74kernel/printk.cbuf++;
buf90kernel/printk.ci=vsprintf(buf,fmt,args);
buf94kernel/printk.c*p = buf[j];
buf102kernel/printk.cconsole_print(buf);
buf92kernel/vsprintf.cint vsprintf(char *buf, const char *fmt, va_list args)
buf107kernel/vsprintf.cfor (str=buf ; *fmt ; ++fmt) {
buf218kernel/vsprintf.c*ip = (str - buf);
buf232kernel/vsprintf.creturn str-buf;
buf11lib/write.c_syscall3(int,write,int,fd,const char *,buf,off_t,count)
buf41mm/swap.cvoid rw_swap_page(int rw, unsigned int nr, char * buf)
buf47mm/swap.cll_rw_page(rw,swap_device,nr,buf);
buf57mm/swap.cll_rw_swap_file(rw,swap_file->i_dev, zones,4,buf);
buf40net/socket.cstatic int sock_read(struct inode *inode, struct file *file, char *buf,
buf42net/socket.cstatic int sock_write(struct inode *inode, struct file *file, char *buf,
buf21net/unix.cchar *buf;
buf80net/unix.cchar buf[sizeof(sockun->sun_path) + 1];
buf85net/unix.celse if (sockaddr_len <= 0 || sockaddr_len >= sizeof(buf)-1)
buf88net/unix.cmemcpy(buf, sockun->sun_path, sockaddr_len);
buf89net/unix.cbuf[sockaddr_len] = '\0';
buf90net/unix.cprintk("sockaddr_un: '%s'[%d]\n", buf,
buf122net/unix.cupd->buf = NULL;
buf145net/unix.cif (upd->buf) {
buf146net/unix.cfree_page((unsigned long)upd->buf);
buf147net/unix.cupd->buf = NULL;
buf172net/unix.cif (!(upd->buf = (char *)get_free_page())) {
buf432net/unix.cmemcpy_tofs(ubuf, upd->buf + upd->bp_tail, cando);
buf510net/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)