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;
buf62fs/block_dev.cint block_read(struct inode * inode, struct file * filp, char * buf, int count)
buf155fs/block_dev.cmemcpy_tofs(buf,offset+(*bhe)->b_data,chars);
buf157fs/block_dev.cbuf += chars;
buf160fs/block_dev.cput_fs_byte(0,buf++);
buf386fs/buffer.cvoid brelse(struct buffer_head * buf)
buf388fs/buffer.cif (!buf)
buf390fs/buffer.cwait_on_buffer(buf);
buf391fs/buffer.cif (buf->b_count) {
buf392fs/buffer.cif (--buf->b_count)
buf427fs/exec.cchar buf[128];
buf485fs/exec.cmemset(buf,0,sizeof(buf));
buf488fs/exec.cretval = read_exec(inode,0,buf,128);
buf492fs/exec.cex = *((struct exec *) buf);    /* exec-header */
buf493fs/exec.cif ((buf[0] == '#') && (buf[1] == '!') && (!sh_bang)) {
buf502fs/exec.cbuf[127] = '\0';
buf503fs/exec.cif ((cp = strchr(buf, '\n')) == NULL)
buf504fs/exec.ccp = buf+127;
buf506fs/exec.cwhile (cp > buf) {
buf513fs/exec.cfor (cp = buf+2; (*cp == ' ') || (*cp == '\t'); cp++);
buf23fs/ext/dir.cstatic int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count)
buf72fs/ext/file.cstatic int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count)
buf164fs/ext/file.cmemcpy_tofs(buf,offset+(*bhe)->b_data,chars);
buf166fs/ext/file.cbuf += chars;
buf169fs/ext/file.cput_fs_byte(0,buf++);
buf193fs/ext/file.cstatic int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count)
buf244fs/ext/file.cmemcpy_fromfs(p,buf,c);
buf245fs/ext/file.cbuf += c;
buf141fs/ext/inode.cvoid ext_statfs (struct super_block *sb, struct statfs *buf)
buf145fs/ext/inode.cput_fs_long(EXT_SUPER_MAGIC, &buf->f_type);
buf146fs/ext/inode.cput_fs_long(1024, &buf->f_bsize);
buf148fs/ext/inode.c&buf->f_blocks);
buf150fs/ext/inode.cput_fs_long(tmp, &buf->f_bfree);
buf151fs/ext/inode.cput_fs_long(tmp, &buf->f_bavail);
buf152fs/ext/inode.cput_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files);
buf153fs/ext/inode.cput_fs_long(ext_count_free_inodes(sb), &buf->f_ffree);
buf25fs/ext2/dir.cchar * buf, int count)
buf73fs/ext2/file.cchar * buf, int count)
buf168fs/ext2/file.cmemcpy_tofs (buf, offset + (*bhe)->b_data,
buf171fs/ext2/file.cbuf += chars;
buf174fs/ext2/file.cput_fs_byte (0, buf++);
buf199fs/ext2/file.cchar * buf, int count)
buf255fs/ext2/file.cmemcpy_fromfs (p, buf, c);
buf256fs/ext2/file.cbuf += c;
buf315fs/ext2/inode.cvoid ext2_statfs (struct super_block * sb, struct statfs * buf)
buf319fs/ext2/inode.cput_fs_long (EXT2_SUPER_MAGIC, &buf->f_type);
buf320fs/ext2/inode.cput_fs_long (sb->s_blocksize, &buf->f_bsize);
buf322fs/ext2/inode.c&buf->f_blocks);
buf324fs/ext2/inode.cput_fs_long (tmp, &buf->f_bfree);
buf325fs/ext2/inode.cput_fs_long (tmp - sb->u.ext2_sb.s_r_blocks_count, &buf->f_bavail);
buf326fs/ext2/inode.cput_fs_long (sb->u.ext2_sb.s_inodes_count, &buf->f_files);
buf327fs/ext2/inode.cput_fs_long (ext2_count_free_inodes(sb), &buf->f_ffree);
buf328fs/ext2/inode.cput_fs_long (EXT2_NAME_LEN, &buf->f_namelen);
buf113fs/isofs/file.cstatic int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count)
buf235fs/isofs/file.cmemcpy_tofs(buf,offset+(*bhe)->b_data,chars);
buf237fs/isofs/file.cbuf += chars;
buf240fs/isofs/file.cput_fs_byte(0,buf++);
buf241fs/isofs/inode.cvoid isofs_statfs (struct super_block *sb, struct statfs *buf)
buf243fs/isofs/inode.cput_fs_long(ISOFS_SUPER_MAGIC, &buf->f_type);
buf244fs/isofs/inode.cput_fs_long(1 << ISOFS_BLOCK_BITS, &buf->f_bsize);
buf245fs/isofs/inode.cput_fs_long(sb->u.isofs_sb.s_nzones, &buf->f_blocks);
buf246fs/isofs/inode.cput_fs_long(0, &buf->f_bfree);
buf247fs/isofs/inode.cput_fs_long(0, &buf->f_bavail);
buf248fs/isofs/inode.cput_fs_long(sb->u.isofs_sb.s_ninodes, &buf->f_files);
buf249fs/isofs/inode.cput_fs_long(0, &buf->f_ffree);
buf16fs/minix/dir.cstatic int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count)
buf66fs/minix/file.cstatic int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count)
buf158fs/minix/file.cmemcpy_tofs(buf,offset+(*bhe)->b_data,chars);
buf160fs/minix/file.cbuf += chars;
buf163fs/minix/file.cput_fs_byte(0,buf++);
buf187fs/minix/file.cstatic int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count)
buf238fs/minix/file.cmemcpy_fromfs(p,buf,c);
buf239fs/minix/file.cbuf += c;
buf129fs/minix/inode.cvoid minix_statfs(struct super_block *sb, struct statfs *buf)
buf133fs/minix/inode.cput_fs_long(MINIX_SUPER_MAGIC, &buf->f_type);
buf134fs/minix/inode.cput_fs_long(1024, &buf->f_bsize);
buf135fs/minix/inode.cput_fs_long(sb->u.minix_sb.s_nzones << sb->u.minix_sb.s_log_zone_size, &buf->f_blocks);
buf137fs/minix/inode.cput_fs_long(tmp, &buf->f_bfree);
buf138fs/minix/inode.cput_fs_long(tmp, &buf->f_bavail);
buf139fs/minix/inode.cput_fs_long(sb->u.minix_sb.s_ninodes, &buf->f_files);
buf140fs/minix/inode.cput_fs_long(minix_count_free_inodes(sb), &buf->f_ffree);
buf17fs/msdos/dir.cstatic int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count)
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,
buf80fs/msdos/file.cstatic int msdos_file_read(struct inode *inode,struct file *filp,char *buf,
buf99fs/msdos/file.cstart = buf;
buf100fs/msdos/file.cwhile ((left = MIN(inode->i_size-filp->f_pos,count-(buf-start))) > 0){
buf107fs/msdos/file.cmemcpy_tofs(buf,data+offset,size);
buf108fs/msdos/file.cbuf += size;
buf114fs/msdos/file.cif (ch != 26) put_fs_byte(ch,buf++);
buf118fs/msdos/file.creturn buf-start;
buf124fs/msdos/file.cif (start == buf) return -EIO;
buf125fs/msdos/file.creturn buf-start;
buf129fs/msdos/file.cstatic int msdos_file_write(struct inode *inode,struct file *filp,char *buf,
buf153fs/msdos/file.cfor (start = buf; count || carry; count -= size) {
buf168fs/msdos/file.cbuf,written = size);
buf169fs/msdos/file.cbuf += size;
buf180fs/msdos/file.cif ((ch = get_fs_byte(buf++)) == '\n') {
buf203fs/msdos/file.creturn start == buf ? error : buf-start;
buf249fs/msdos/inode.cvoid msdos_statfs(struct super_block *sb,struct statfs *buf)
buf253fs/msdos/inode.cput_fs_long(sb->s_magic,&buf->f_type);
buf254fs/msdos/inode.cput_fs_long(MSDOS_SB(sb)->cluster_size*SECTOR_SIZE,&buf->f_bsize);
buf255fs/msdos/inode.cput_fs_long(MSDOS_SB(sb)->clusters,&buf->f_blocks);
buf266fs/msdos/inode.cput_fs_long(free,&buf->f_bfree);
buf267fs/msdos/inode.cput_fs_long(free,&buf->f_bavail);
buf268fs/msdos/inode.cput_fs_long(0,&buf->f_files);
buf269fs/msdos/inode.cput_fs_long(0,&buf->f_ffree);
buf20fs/nfs/dir.cstatic int nfs_dir_read(struct inode *, struct file *filp, char *buf,
buf71fs/nfs/dir.cstatic int nfs_dir_read(struct inode *inode, struct file *filp, char *buf,
buf53fs/nfs/file.cstatic int nfs_file_read(struct inode *inode, struct file *file, char *buf,
buf90fs/nfs/file.cmemcpy_tofs(buf, data, result);
buf92fs/nfs/file.cbuf += result;
buf104fs/nfs/file.cstatic int nfs_file_write(struct inode *inode, struct file *file, char *buf,
buf135fs/nfs/file.cmemcpy_fromfs(data, buf, hunk);
buf143fs/nfs/file.cbuf += hunk;
buf119fs/nfs/inode.cvoid nfs_statfs(struct super_block *sb, struct statfs *buf)
buf124fs/nfs/inode.cput_fs_long(NFS_SUPER_MAGIC, &buf->f_type);
buf131fs/nfs/inode.cput_fs_long(res.bsize, &buf->f_bsize);
buf132fs/nfs/inode.cput_fs_long(res.blocks, &buf->f_blocks);
buf133fs/nfs/inode.cput_fs_long(res.bfree, &buf->f_bfree);
buf134fs/nfs/inode.cput_fs_long(res.bavail, &buf->f_bavail);
buf135fs/nfs/inode.cput_fs_long(0, &buf->f_files);
buf136fs/nfs/inode.cput_fs_long(0, &buf->f_ffree);
buf29fs/open.cint sys_statfs(const char * path, struct statfs * buf)
buf34fs/open.cerror = verify_area(VERIFY_WRITE, 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)
buf55fs/open.cerror = verify_area(VERIFY_WRITE, buf, sizeof(struct statfs));
buf64fs/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, PIPE_BASE(*inode)+PIPE_TAIL(*inode), chars );
buf40fs/pipe.cbuf += chars;
buf50fs/pipe.cstatic int pipe_write(struct inode * inode, struct file * filp, char * buf, int count)
buf82fs/pipe.cmemcpy_fromfs(PIPE_BASE(*inode)+PIPE_HEAD(*inode), buf, chars );
buf87fs/pipe.cbuf += chars;
buf105fs/pipe.cstatic int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count)
buf253fs/proc/array.cunsigned long ptbl, *buf, *pte, *pagedir, map_nr;
buf265fs/proc/array.cbuf = (void *)(ptbl & 0xfffff000);
buf266fs/proc/array.cfor (pte = buf; pte < (buf + 1024); ++pte) {
buf295fs/proc/array.cstatic int array_read(struct inode * inode, struct file * file,char * buf, int count)
buf346fs/proc/array.cmemcpy_tofs(buf, page + file->f_pos, count);
buf58fs/proc/inode.cvoid proc_statfs(struct super_block *sb, struct statfs *buf)
buf60fs/proc/inode.cput_fs_long(PROC_SUPER_MAGIC, &buf->f_type);
buf61fs/proc/inode.cput_fs_long(1024, &buf->f_bsize);
buf62fs/proc/inode.cput_fs_long(0, &buf->f_blocks);
buf63fs/proc/inode.cput_fs_long(0, &buf->f_bfree);
buf64fs/proc/inode.cput_fs_long(0, &buf->f_bavail);
buf65fs/proc/inode.cput_fs_long(0, &buf->f_files);
buf66fs/proc/inode.cput_fs_long(0, &buf->f_ffree);
buf32fs/proc/kmsg.cstatic int kmsg_read(struct inode * inode, struct file * file,char * buf, int count)
buf34fs/proc/kmsg.creturn sys_syslog(2,buf,count);
buf97fs/proc/link.cchar buf[64];
buf107fs/proc/link.ci = sprintf(buf,"[%04x]:%u", dev, ino);
buf112fs/proc/link.cput_fs_byte(buf[i++],buffer++);
buf23fs/proc/mem.cstatic int mem_read(struct inode * inode, struct file * file,char * buf, int count)
buf43fs/proc/mem.ctmp = buf;
buf67fs/proc/mem.creturn tmp-buf;
buf72fs/proc/mem.cstatic int mem_write(struct inode * inode, struct file * file,char * buf, int count)
buf92fs/proc/mem.ctmp = buf;
buf120fs/proc/mem.cif (tmp != buf)
buf121fs/proc/mem.creturn tmp-buf;
buf70fs/read_write.cint sys_read(unsigned int fd,char * buf,unsigned int count)
buf84fs/read_write.cerror = verify_area(VERIFY_WRITE,buf,count);
buf87fs/read_write.creturn file->f_op->read(inode,file,buf,count);
buf90fs/read_write.cint sys_write(unsigned int fd,char * buf,unsigned int count)
buf104fs/read_write.cerror = verify_area(VERIFY_READ,buf,count);
buf107fs/read_write.creturn file->f_op->write(inode,file,buf,count);
buf172fs/stat.cint sys_readlink(const char * path, char * buf, int bufsiz)
buf179fs/stat.cerror = verify_area(VERIFY_WRITE,buf,bufsiz);
buf189fs/stat.creturn inode->i_op->readlink(inode,buf,bufsiz);
buf60fs/xiafs/dir.cstruct file * filp, char * buf, int count)
buf70fs/xiafs/file.cxiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count)
buf156fs/xiafs/file.cmemcpy_tofs(buf,offset+(*bhe)->b_data,chars);
buf158fs/xiafs/file.cbuf += chars;
buf161fs/xiafs/file.cput_fs_byte(0,buf++);
buf186fs/xiafs/file.cxiafs_file_write(struct inode * inode, struct file * filp, char * buf, int count)
buf237fs/xiafs/file.cmemcpy_fromfs(cp,buf,c);
buf238fs/xiafs/file.cbuf += c;
buf141fs/xiafs/inode.cvoid xiafs_statfs(struct super_block *sb, struct statfs *buf)
buf145fs/xiafs/inode.cput_fs_long(_XIAFS_SUPER_MAGIC, &buf->f_type);
buf146fs/xiafs/inode.cput_fs_long(XIAFS_ZSIZE(sb), &buf->f_bsize);
buf147fs/xiafs/inode.cput_fs_long(sb->u.xiafs_sb.s_ndatazones, &buf->f_blocks);
buf149fs/xiafs/inode.cput_fs_long(tmp, &buf->f_bfree);
buf150fs/xiafs/inode.cput_fs_long(tmp, &buf->f_bavail);
buf151fs/xiafs/inode.cput_fs_long(sb->u.xiafs_sb.s_ninodes, &buf->f_files);
buf152fs/xiafs/inode.cput_fs_long(xiafs_count_free_inodes(sb), &buf->f_ffree);
buf367include/linux/fs.hextern void brelse(struct buffer_head * buf);
buf16include/linux/kernel.hint sprintf(char * buf, const char * fmt, ...);
buf118include/linux/mm.hextern void rw_swap_page(int rw, unsigned long nr, char * buf);
buf120include/linux/mm.h#define read_swap_page(nr,buf) \
buf121include/linux/mm.hrw_swap_page(READ,(nr),(buf))
buf122include/linux/mm.h#define write_swap_page(nr,buf) \
buf123include/linux/mm.hrw_swap_page(WRITE,(nr),(buf))
buf172include/linux/msdos_fs.hextern void msdos_statfs(struct super_block *sb,struct statfs *buf);
buf69include/linux/tty.hunsigned char buf[TTY_BUF_SIZE];
buf130include/linux/tty.h#define LAST(a) ((a)->buf[(TTY_BUF_SIZE-1)&((a)->head-1)])
buf238include/linux/tty.hchar * buf, int nr);
buf240include/linux/tty.hchar * buf, int nr);  
buf46init/main.cstatic inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
buf89kernel/blk_drv/hd.c#define port_read(port,buf,nr) \
buf90kernel/blk_drv/hd.c__asm__("cld;rep;insw"::"d" (port),"D" (buf),"c" (nr):"cx","di")
buf92kernel/blk_drv/hd.c#define port_write(port,buf,nr) \
buf93kernel/blk_drv/hd.c__asm__("cld;rep;outsw"::"d" (port),"S" (buf),"c" (nr):"cx","si")
buf329kernel/blk_drv/ll_rw_blk.cvoid ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf)
buf349kernel/blk_drv/ll_rw_blk.cfor (i=0; i<nb; i++, buf += BLOCK_SIZE)
buf367kernel/blk_drv/ll_rw_blk.creq->buffer = buf;
buf712kernel/blk_drv/scsi/aha1542.cunchar buf[8];
buf716kernel/blk_drv/scsi/aha1542.cfor (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87;
buf718kernel/blk_drv/scsi/aha1542.cif (!aha1542_command(i, cmd, buf, sizeof(buf))) {
buf720kernel/blk_drv/scsi/aha1542.ci, xscsi2int(buf+4), xscsi2int(buf));
buf264kernel/blk_drv/scsi/fdomain.c#define insw( buf, count, port ) \
buf266kernel/blk_drv/scsi/fdomain.c( "cld;rep;insw"::"d" (port),"D" (buf),"c" (count):"cx","di" )
buf268kernel/blk_drv/scsi/fdomain.c#define outsw( buf, count, port ) \
buf270kernel/blk_drv/scsi/fdomain.c("cld;rep;outsw"::"d" (port),"S" (buf),"c" (count):"cx","si")
buf353kernel/blk_drv/scsi/fdomain.cunsigned char    buf[buflen];
buf482kernel/blk_drv/scsi/fdomain.cSCinit.request_buffer = SCinit.buffer = buf;
buf483kernel/blk_drv/scsi/fdomain.cSCinit.request_bufflen = SCinit.bufflen = sizeof(buf)-1;
buf498kernel/blk_drv/scsi/fdomain.cfor (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++)
buf499kernel/blk_drv/scsi/fdomain.cprintk( "%c", buf[j] >= 20 ? buf[j] : ' ' );
buf505kernel/blk_drv/scsi/fdomain.cblocks = (buf[0] << 24) | (buf[1] << 16)
buf506kernel/blk_drv/scsi/fdomain.c| (buf[2] << 8) | buf[3];
buf507kernel/blk_drv/scsi/fdomain.csize = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7];
buf139kernel/blk_drv/scsi/scsi_ioctl.cchar * buf;
buf161kernel/blk_drv/scsi/scsi_ioctl.cbuf = scsi_malloc(needed);
buf162kernel/blk_drv/scsi/scsi_ioctl.cif (!buf) return -ENOMEM;
buf164kernel/blk_drv/scsi/scsi_ioctl.cbuf = NULL;
buf167kernel/blk_drv/scsi/scsi_ioctl.cmemcpy_fromfs ((void *) buf,  (void *) (cmd_in + cmdlen), inlen > MAX_BUF ? MAX_BUF : inlen);
buf175kernel/blk_drv/scsi/scsi_ioctl.cscsi_do_cmd(SCpnt,  cmd,  buf,  ((outlen > MAX_BUF) ? 
buf188kernel/blk_drv/scsi/scsi_ioctl.cmemcpy_tofs ((void *) cmd_in,  buf,  (outlen > MAX_BUF) ? MAX_BUF  : outlen);
buf191kernel/blk_drv/scsi/scsi_ioctl.cif (buf) scsi_free(buf, needed);
buf202kernel/blk_drv/scsi/scsi_ioctl.cprintk("%02x ", buf[i]);
buf546kernel/blk_drv/scsi/st.cint st_write(struct inode * inode, struct file * filp, char * buf, int count)
buf599kernel/blk_drv/scsi/st.cb_point = buf;
buf685kernel/blk_drv/scsi/st.cint st_read(struct inode * inode, struct file * filp, char * buf, int count)
buf820kernel/blk_drv/scsi/st.cmemcpy_tofs(buf, scsi_tapes[dev].buffer->b_data +
buf823kernel/blk_drv/scsi/st.cbuf += transfer;
buf322kernel/blk_drv/scsi/ultrastor.cstatic char buf[64];
buf324kernel/blk_drv/scsi/ultrastor.c(void)sprintf(buf, "UltraStor %s SCSI @ Port %03X BIOS %05X IRQ%u DMA%u\n",
buf329kernel/blk_drv/scsi/ultrastor.creturn buf;
buf557kernel/blk_drv/scsi/wd7000.cextern int vsprintf(char *buf, const char *fmt, va_list args);
buf472kernel/blk_drv/xd.cu_char cmdblk[6],buf[64];
buf475kernel/blk_drv/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
buf476kernel/blk_drv/xd.cxd_info[drive].heads = buf[0x0A];      /* heads */
buf477kernel/blk_drv/xd.cxd_info[drive].cylinders = ((u_short *) (buf))[0x04];  /* cylinders */
buf480kernel/blk_drv/xd.cxd_info[drive].rwrite = ((u_short *) (buf + 1))[0x05];  /* reduced write */
buf481kernel/blk_drv/xd.cxd_info[drive].precomp = ((u_short *) (buf + 1))[0x06];  /* write precomp */
buf482kernel/blk_drv/xd.cxd_info[drive].ecc = buf[0x0F];        /* ecc length */
buf486kernel/blk_drv/xd.cxd_setparam(CMD_DTCSETPARAM,drive,xd_info[drive].heads,xd_info[drive].cylinders,((u_short *) (buf + 1))[0x05],((u_short *) (buf + 1))[0x06],buf[0x0F]);
buf512kernel/blk_drv/xd.cu_char cmdblk[6],buf[0x200];
buf515kernel/blk_drv/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
buf516kernel/blk_drv/xd.cxd_info[drive].heads = buf[0x1AF];        /* heads */
buf517kernel/blk_drv/xd.cxd_info[drive].cylinders = ((u_short *) (buf + 1))[0xD6];  /* cylinders */
buf520kernel/blk_drv/xd.cxd_info[drive].rwrite = ((u_short *) (buf))[0xD8];    /* reduced write */
buf521kernel/blk_drv/xd.cxd_info[drive].wprecomp = ((u_short *) (buf))[0xDA];    /* write precomp */
buf522kernel/blk_drv/xd.cxd_info[drive].ecc = buf[0x1B4];        /* ecc length */
buf524kernel/blk_drv/xd.cxd_info[drive].control = buf[0x1B5];        /* control byte */
buf526kernel/blk_drv/xd.cxd_setparam(CMD_WDSETPARAM,drive,xd_info[drive].heads,xd_info[drive].cylinders,((u_short *) (buf))[0xD8],((u_short *) (buf))[0xDA],buf[0x1B4]);
buf549kernel/blk_drv/xd.cu_char cmdblk[6],buf[0x200];
buf552kernel/blk_drv/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
buf553kernel/blk_drv/xd.cxd_info[drive].heads = buf[0x04];        /* heads */
buf554kernel/blk_drv/xd.cxd_info[drive].cylinders = (buf[0x02] << 8) | buf[0x03];  /* cylinders */
buf555kernel/blk_drv/xd.cxd_info[drive].sectors = buf[0x05];        /* sectors */
buf1438kernel/chr_drv/console.cchar *sptr, *buf = (char *)arg;
buf1441kernel/chr_drv/console.cl = verify_area(VERIFY_WRITE, buf,2+video_num_columns*video_num_lines);
buf1444kernel/chr_drv/console.ccurrcons = get_fs_byte(buf+1);
buf1447kernel/chr_drv/console.cput_fs_byte((char)(video_num_lines),buf++);  
buf1448kernel/chr_drv/console.cput_fs_byte((char)(video_num_columns),buf++);
buf1452kernel/chr_drv/console.cput_fs_byte(*sptr++,buf++);  
buf147kernel/chr_drv/keyboard.cqp->buf[qp->head]=ch;
buf165kernel/chr_drv/keyboard.cqp->buf[qp->head]=ch;
buf282kernel/chr_drv/keyboard.cchar buf[] = { 0x1b, 0x4f, 0x00, 0x00 };
buf284kernel/chr_drv/keyboard.cbuf[2] = key;
buf285kernel/chr_drv/keyboard.cputs_queue(buf);
buf1219kernel/chr_drv/keyboard.cchar buf[] = { 0x1b, '[', 0, 0, 0 };    /* must not be static */
buf1221kernel/chr_drv/keyboard.cbuf[2]=cur_table[sc];
buf1222kernel/chr_drv/keyboard.cif (buf[2] < '9')
buf1223kernel/chr_drv/keyboard.cbuf[3]='~';
buf1225kernel/chr_drv/keyboard.cif ((buf[2] >= 'A' && buf[2] <= 'D') ?
buf1228kernel/chr_drv/keyboard.cbuf[1]='O';
buf1229kernel/chr_drv/keyboard.cputs_queue(buf);
buf122kernel/chr_drv/lp.cstatic int lp_write_interrupt(struct inode * inode, struct file * file, char * buf, int count)
buf134kernel/chr_drv/lp.cmemcpy_fromfs(lp->lp_buffer, buf, copy_size);
buf181kernel/chr_drv/lp.cbuf += bytes_written;
buf190kernel/chr_drv/lp.cchar * buf, int count)
buf194kernel/chr_drv/lp.cchar c, *temp = buf;
buf204kernel/chr_drv/lp.ctemp = buf;
buf220kernel/chr_drv/lp.creturn temp-buf?temp-buf:-ENOSPC;
buf228kernel/chr_drv/lp.creturn temp-buf?temp-buf:-EIO;
buf237kernel/chr_drv/lp.creturn temp-buf?temp-buf:-EFAULT;
buf245kernel/chr_drv/lp.cif (temp != buf)
buf246kernel/chr_drv/lp.creturn temp-buf;
buf260kernel/chr_drv/lp.creturn temp-buf;
buf263kernel/chr_drv/lp.cstatic int lp_write(struct inode * inode, struct file * file, char * buf, int count)
buf266kernel/chr_drv/lp.creturn lp_write_interrupt(inode, file, buf, count);
buf268kernel/chr_drv/lp.creturn lp_write_polled(inode, file, buf, count);
buf22kernel/chr_drv/mem.cstatic int read_ram(struct inode * inode, struct file * file,char * buf, int count)
buf27kernel/chr_drv/mem.cstatic int write_ram(struct inode * inode, struct file * file,char * buf, int count)
buf32kernel/chr_drv/mem.cstatic int read_core(struct inode * inode, struct file * file,char * buf, int count)
buf57kernel/chr_drv/mem.cmemcpy_tofs(buf,(void *) pnt, count1);
buf58kernel/chr_drv/mem.cbuf += count1;
buf65kernel/chr_drv/mem.cput_fs_byte(0,buf);
buf66kernel/chr_drv/mem.cbuf++;
buf71kernel/chr_drv/mem.cmemcpy_tofs(buf,(void *) (p - 4096),count);
buf77kernel/chr_drv/mem.cstatic int read_mem(struct inode * inode, struct file * file,char * buf, int count)
buf90kernel/chr_drv/mem.cput_fs_byte(0,buf);
buf91kernel/chr_drv/mem.cbuf++;
buf96kernel/chr_drv/mem.cmemcpy_tofs(buf,(void *) p,count);
buf102kernel/chr_drv/mem.cstatic int write_mem(struct inode * inode, struct file * file,char * buf, int count)
buf116kernel/chr_drv/mem.cbuf++;
buf121kernel/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_null(struct inode * node,struct file * file,char * buf,int count)
buf172kernel/chr_drv/mem.cstatic int write_null(struct inode * inode,struct file * file,char * buf, int count)
buf177kernel/chr_drv/mem.cstatic int read_zero(struct inode * node,struct file * file,char * buf,int count)
buf182kernel/chr_drv/mem.cput_fs_byte(0,buf);
buf183kernel/chr_drv/mem.cbuf++;
buf188kernel/chr_drv/mem.cstatic int write_zero(struct inode * inode,struct file * file,char * buf, int count)
buf68kernel/chr_drv/psaux.cunsigned char buf[AUX_BUF_SIZE];
buf126kernel/chr_drv/psaux.cresult = queue->buf[queue->tail];
buf149kernel/chr_drv/psaux.cqueue->buf[head] = inb(AUX_INPUT_PORT);
buf227kernel/chr_drv/serial.cqueue->buf[head++]= TTY_BREAK;
buf230kernel/chr_drv/serial.cqueue->buf[head++]= TTY_PARITY;
buf232kernel/chr_drv/serial.cqueue->buf[head++]= TTY_FRAME;
buf235kernel/chr_drv/serial.cqueue->buf[head++] = ch;
buf262kernel/chr_drv/serial.cserial_outp(info, UART_TX, queue->buf[tail++]);
buf704kernel/chr_drv/serial.cserial_outp(info, UART_TX, queue->buf[tail++]);
buf100kernel/chr_drv/tty_io.cqueue->buf[queue->head] = c;
buf113kernel/chr_drv/tty_io.cresult = 0xff & queue->buf[queue->tail];
buf137kernel/chr_drv/tty_io.c*p++ =  tty->read_q.buf[tail++];
buf169kernel/chr_drv/tty_io.cstatic int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count)
buf174kernel/chr_drv/tty_io.cstatic int hung_up_tty_write(struct inode * inode, struct file * file, char * buf, int count)
buf491kernel/chr_drv/tty_io.cc = 0xff & tty->read_q.buf[tty->read_q.tail];
buf678kernel/chr_drv/tty_io.cstatic int read_chan(struct tty_struct * tty, struct file * file, char * buf, int nr)
buf682kernel/chr_drv/tty_io.cchar * b=buf;
buf762kernel/chr_drv/tty_io.cif (b-buf >= minimum || !current->timeout)
buf787kernel/chr_drv/tty_io.cif ((b-buf) > 1)
buf788kernel/chr_drv/tty_io.creturn b-buf;
buf790kernel/chr_drv/tty_io.cif (b-buf)
buf791kernel/chr_drv/tty_io.creturn b-buf;
buf835kernel/chr_drv/tty_io.cstatic int write_chan(struct tty_struct * tty, struct file * file, char * buf, int nr)
buf838kernel/chr_drv/tty_io.cchar c, *b=buf;
buf887kernel/chr_drv/tty_io.cif (b-buf)
buf888kernel/chr_drv/tty_io.creturn b-buf;
buf896kernel/chr_drv/tty_io.cstatic int tty_read(struct inode * inode, struct file * file, char * buf, int count)
buf921kernel/chr_drv/tty_io.ci = (ldiscs[tty->disc].read)(tty,file,buf,count);
buf929kernel/chr_drv/tty_io.cstatic int tty_write(struct inode * inode, struct file * file, char * buf, int count)
buf957kernel/chr_drv/tty_io.ci = (ldiscs[tty->disc].write)(tty,file,buf,count);
buf1368kernel/chr_drv/tty_io.ctty->write_q.buf[head++] = *p++;
buf1414kernel/chr_drv/tty_io.ctty->write_q.buf[head++] = *p++;
buf23kernel/printk.cstatic char buf[1024];
buf25kernel/printk.cextern int vsprintf(char * buf, const char * fmt, va_list args);
buf48kernel/printk.cint sys_syslog(int type, char * buf, int len)
buf64kernel/printk.cif (!buf || len < 0)
buf68kernel/printk.cverify_area(VERIFY_WRITE,buf,len);
buf83kernel/printk.cput_fs_byte(c,buf);
buf84kernel/printk.cbuf++;
buf91kernel/printk.cif (!buf || len < 0)
buf95kernel/printk.cverify_area(VERIFY_WRITE,buf,len);
buf104kernel/printk.cput_fs_byte(c, buf++);
buf129kernel/printk.ci=vsprintf(buf,fmt,args);
buf132kernel/printk.clog_buf[(log_start+log_size) & 4095] = buf[j];
buf141kernel/printk.c(*console_print_proc)(buf);
buf155kernel/printk.cchar  buf[16];
buf160kernel/printk.cbuf[j++] = log_buf[p];
buf162kernel/printk.cif (j < sizeof(buf)-1)
buf164kernel/printk.cbuf[j] = 0;
buf165kernel/printk.c(*proc)(buf);
buf168kernel/printk.cbuf[j] = 0;
buf169kernel/printk.c(*proc)(buf);
buf119kernel/vsprintf.cint vsprintf(char *buf, const char *fmt, va_list args)
buf134kernel/vsprintf.cfor (str=buf ; *fmt ; ++fmt) {
buf245kernel/vsprintf.c*ip = (str - buf);
buf259kernel/vsprintf.creturn str-buf;
buf262kernel/vsprintf.cint sprintf(char * buf, const char *fmt, ...)
buf268kernel/vsprintf.ci=vsprintf(buf,fmt,args);
buf11lib/write.c_syscall3(int,write,int,fd,const char *,buf,off_t,count)
buf68mm/swap.cvoid rw_swap_page(int rw, unsigned long entry, char * buf)
buf91mm/swap.cll_rw_page(rw,p->swap_device,offset,buf);
buf102mm/swap.cll_rw_swap_file(rw,p->swap_file->i_dev, zones,4,buf);
buf50net/socket.cstatic int sock_read(struct inode *inode, struct file *file, char *buf,
buf52net/socket.cstatic int sock_write(struct inode *inode, struct file *file, char *buf,
buf95net/tcp/ip.cstatic char buf[100];
buf97net/tcp/ip.csprintf(buf,"%d.%d.%d.%d",
buf102net/tcp/ip.creturn buf;
buf24net/unix.cchar *buf;
buf118net/unix.cchar buf[sizeof(sockun->sun_path) + 1];
buf123net/unix.celse if (sockaddr_len <= 0 || sockaddr_len >= sizeof(buf))
buf126net/unix.cmemcpy(buf, sockun->sun_path, sockaddr_len);
buf127net/unix.cbuf[sockaddr_len] = '\0';
buf128net/unix.cprintk("sockaddr_un: '%s'[%d]\n", buf,
buf223net/unix.cupd->buf = NULL;
buf246net/unix.cif (upd->buf) {
buf247net/unix.cfree_page((unsigned long)upd->buf);
buf248net/unix.cupd->buf = NULL;
buf273net/unix.cif (!(upd->buf = (char *)get_free_page(GFP_USER))) {
buf589net/unix.cmemcpy_tofs(ubuf, upd->buf + upd->bp_tail, cando);
buf667net/unix.cmemcpy_fromfs(pupd->buf + pupd->bp_head, ubuf, cando);
buf89tools/build.cchar buf[1024];
buf90tools/build.cstruct exec *ex = (struct exec *)buf;
buf120tools/build.cfor (i=0;i<sizeof buf; i++) buf[i]=0;
buf123tools/build.cif (read(id,buf,MINIX_HEADER) != MINIX_HEADER)
buf125tools/build.cif (((long *) buf)[0]!=intel_long(0x04100301))
buf127tools/build.cif (((long *) buf)[1]!=intel_long(MINIX_HEADER))
buf129tools/build.cif (((long *) buf)[3] != 0)
buf131tools/build.cif (((long *) buf)[4] != 0)
buf133tools/build.cif (((long *) buf)[5] != 0)
buf135tools/build.cif (((long *) buf)[7] != 0)
buf137tools/build.ci=read(id,buf,sizeof buf);
buf141tools/build.cif ((*(unsigned short *)(buf+510)) != (unsigned short)intel_short(0xAA55))
buf143tools/build.cbuf[508] = (char) minor_root;
buf144tools/build.cbuf[509] = (char) major_root;  
buf145tools/build.ci=write(1,buf,512);
buf152tools/build.cif (read(id,buf,MINIX_HEADER) != MINIX_HEADER)
buf154tools/build.cif (((long *) buf)[0]!=intel_long(0x04100301))
buf156tools/build.cif (((long *) buf)[1]!=intel_long(MINIX_HEADER))
buf158tools/build.cif (((long *) buf)[3] != 0)
buf160tools/build.cif (((long *) buf)[4] != 0)
buf162tools/build.cif (((long *) buf)[5] != 0)
buf164tools/build.cif (((long *) buf)[7] != 0)
buf166tools/build.cfor (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c )
buf167tools/build.cif (write(1,buf,c)!=c)
buf176tools/build.cfor (c=0 ; c<sizeof(buf) ; c++)
buf177tools/build.cbuf[c] = '\0';
buf180tools/build.cif (c > sizeof(buf))
buf181tools/build.cc = sizeof(buf);
buf182tools/build.cif (write(1,buf,c) != c)
buf189tools/build.cif (read(id,buf,GCC_HEADER) != GCC_HEADER)
buf202tools/build.cif (l > sizeof(buf))
buf203tools/build.cl = sizeof(buf);
buf204tools/build.cif ((n=read(id, buf, l)) != l) {
buf211tools/build.cwrite(1, buf, l);
buf216tools/build.cbuf[0] = (sys_size & 0xff);
buf217tools/build.cbuf[1] = ((sys_size >> 8) & 0xff);
buf218tools/build.cwrite(1, buf, 2);
buf238zBoot/gzip.hextern int file_read  OF((char *buf,  unsigned size));
buf257zBoot/gzip.hulg  flush_block OF((char *buf, ulg stored_len, int eof));
buf264zBoot/gzip.hvoid     copy_block OF((char *buf, unsigned len, int header));
buf265zBoot/gzip.hextern   int (*read_buf) OF((char *buf, unsigned size));
buf99zBoot/unzip.cuch buf[EXTHDR];        /* extended local header */
buf147zBoot/unzip.cbuf[n] = (uch)get_byte(); /* may cause an error if EOF */
buf149zBoot/unzip.corig_crc = LG(buf);
buf150zBoot/unzip.corig_len = LG(buf+4);
buf159zBoot/unzip.cbuf[n] = (uch)get_byte(); /* may cause an error if EOF */
buf161zBoot/unzip.corig_crc = LG(buf+4);
buf162zBoot/unzip.corig_len = LG(buf+12);
buf52zBoot/xtract.cchar buf[1024];
buf56zBoot/xtract.cstruct exec *ex = (struct exec *)buf;
buf63zBoot/xtract.cif (read(id,buf,GCC_HEADER) != GCC_HEADER)
buf77zBoot/xtract.cif (l > sizeof(buf)) l = sizeof(buf);
buf79zBoot/xtract.cif ((n=read(id, buf, l)) !=l)
buf89zBoot/xtract.cwrite(1, buf, l);