394.html

来自「linux 0.11中文版 有注释」· HTML 代码 · 共 88 行

HTML
88
字号
<html>
<head>
<title>buf</title>
<meta name='robots' content='noindex,nofollow'>
<meta name='generator' content='GLOBAL-5.4.1'>
</head>
<body text='#191970' bgcolor='#f5f5dc' vlink='gray'>
<pre>
<a href='../S/5.html#L60'>buf</a>                60 fs/block_dev.c 	*(p++) = get_fs_byte (buf++);
<a href='../S/5.html#L102'>buf</a>               102 fs/block_dev.c 	put_fs_byte (*(p++), buf++);
<a href='../S/6.html#L379'>buf</a>               379 fs/buffer.c      if (!buf)			// 如果缓冲头指针无效则返回。
<a href='../S/6.html#L381'>buf</a>               381 fs/buffer.c      wait_on_buffer (buf);
<a href='../S/6.html#L382'>buf</a>               382 fs/buffer.c      if (!(buf-&gt;b_count--))
<a href='../S/8.html#L360'>buf</a>               360 fs/exec.c            char buf[1023], *cp, *interp, *i_name, *i_arg;
<a href='../S/8.html#L364'>buf</a>               364 fs/exec.c            strncpy (buf, bh-&gt;b_data + 2, 1022);
<a href='../S/8.html#L369'>buf</a>               369 fs/exec.c            buf[1022] = '\0';
<a href='../S/8.html#L370'>buf</a>               370 fs/exec.c            if (cp = strchr (buf, '\n'))
<a href='../S/8.html#L373'>buf</a>               373 fs/exec.c      	  for (cp = buf; (*cp == ' ') || (*cp == '\t'); cp++);
<a href='../S/10.html#L57'>buf</a>                57 fs/file_dev.c  	    put_fs_byte (*(p++), buf++);
<a href='../S/10.html#L63'>buf</a>                63 fs/file_dev.c  	    put_fs_byte (0, buf++);
<a href='../S/10.html#L128'>buf</a>               128 fs/file_dev.c  	*(p++) = get_fs_byte (buf++);
<a href='../S/16.html#L50'>buf</a>                50 fs/pipe.c      	put_fs_byte (((char *) inode-&gt;i_size)[size++], buf++);
<a href='../S/16.html#L96'>buf</a>                96 fs/pipe.c      	((char *) inode-&gt;i_size)[size++] = get_fs_byte (buf++);
<a href='../S/17.html#L97'>buf</a>                97 fs/read_write.c   verify_area (buf, count);
<a href='../S/17.html#L102'>buf</a>               102 fs/read_write.c     return (file-&gt;f_mode &amp; 1) ? read_pipe (inode, buf, count) : -EIO;
<a href='../S/17.html#L105'>buf</a>               105 fs/read_write.c     return rw_char (READ, inode-&gt;i_zone[0], buf, count, &amp;file-&gt;f_pos);
<a href='../S/17.html#L108'>buf</a>               108 fs/read_write.c     return block_read (inode-&gt;i_zone[0], &amp;file-&gt;f_pos, buf, count);
<a href='../S/17.html#L118'>buf</a>               118 fs/read_write.c       return file_read (inode, file, buf, count);
<a href='../S/17.html#L142'>buf</a>               142 fs/read_write.c     return (file-&gt;f_mode &amp; 2) ? write_pipe (inode, buf, count) : -EIO;
<a href='../S/17.html#L145'>buf</a>               145 fs/read_write.c     return rw_char (WRITE, inode-&gt;i_zone[0], buf, count, &amp;file-&gt;f_pos);
<a href='../S/17.html#L148'>buf</a>               148 fs/read_write.c     return block_write (inode-&gt;i_zone[0], &amp;file-&gt;f_pos, buf, count);
<a href='../S/17.html#L151'>buf</a>               151 fs/read_write.c     return file_write (inode, file, buf, count);
<a href='../S/38.html#L30'>buf</a>                30 include/linux/tty.h   char buf[TTY_BUF_SIZE];	// 队列的缓冲区。
<a href='../S/38.html#L43'>buf</a>                43 include/linux/tty.h #define LAST(a) ((a).buf[(TTY_BUF_SIZE-1)&amp;((a).head-1)])
<a href='../S/38.html#L50'>buf</a>                50 include/linux/tty.h (void)({c=(queue).buf[(queue).tail];INC((queue).tail);})
<a href='../S/38.html#L53'>buf</a>                53 include/linux/tty.h (void)({(queue).buf[(queue).head]=(c);INC((queue).head);})
<a href='../S/56.html#L92'>buf</a>                92 kernel/blk_drv/hd.c __asm__( "cld;rep;insw":: "d" (port), "D" (buf), "c" (nr): "cx", "di")
<a href='../S/56.html#L96'>buf</a>                96 kernel/blk_drv/hd.c __asm__( "cld;rep;outsw":: "d" (port), "S" (buf), "c" (nr): "cx", "si")
<a href='../S/65.html#L334'>buf</a>               334 kernel/chr_drv/tty_io.c   char c, *b = buf;
<a href='../S/65.html#L397'>buf</a>               397 kernel/chr_drv/tty_io.c 	    return (b - buf);
<a href='../S/65.html#L419'>buf</a>               419 kernel/chr_drv/tty_io.c 	  if (b - buf)
<a href='../S/65.html#L422'>buf</a>               422 kernel/chr_drv/tty_io.c       else if (b - buf &gt;= minimum)
<a href='../S/65.html#L428'>buf</a>               428 kernel/chr_drv/tty_io.c   if (current-&gt;signal &amp;&amp; !(b - buf))
<a href='../S/65.html#L430'>buf</a>               430 kernel/chr_drv/tty_io.c   return (b - buf);		// 返回已读取的字符数。
<a href='../S/65.html#L441'>buf</a>               441 kernel/chr_drv/tty_io.c   char c, *b = buf;
<a href='../S/65.html#L497'>buf</a>               497 kernel/chr_drv/tty_io.c   return (b - buf);		// 返回写入的字节数。
<a href='../S/73.html#L23'>buf</a>                23 kernel/printk.c static char buf[1024];
<a href='../S/73.html#L36'>buf</a>                36 kernel/printk.c   i = vsprintf (buf, fmt, args);	// 使用格式串fmt 将参数列表args 输出到buf 中。
<a href='../S/78.html#L155'>buf</a>               155 kernel/vsprintf.c   for (str = buf; *fmt; ++fmt)
<a href='../S/78.html#L315'>buf</a>               315 kernel/vsprintf.c 	  *ip = (str - buf);
<a href='../S/78.html#L332'>buf</a>               332 kernel/vsprintf.c   return str - buf;		// 返回转换好的字符串长度值。
<a href='../S/96.html#L80'>buf</a>                80 tools/build.c    char buf[1024];
<a href='../S/96.html#L125'>buf</a>               125 tools/build.c    for (i = 0; i &lt; sizeof buf; i++)
<a href='../S/96.html#L126'>buf</a>               126 tools/build.c      buf[i] = 0;
<a href='../S/96.html#L131'>buf</a>               131 tools/build.c    if (read (id, buf, MINIX_HEADER) != MINIX_HEADER)
<a href='../S/96.html#L134'>buf</a>               134 tools/build.c    if (((long *) buf)[0] != 0x04100301)
<a href='../S/96.html#L137'>buf</a>               137 tools/build.c    if (((long *) buf)[1] != MINIX_HEADER)
<a href='../S/96.html#L140'>buf</a>               140 tools/build.c    if (((long *) buf)[3] != 0)
<a href='../S/96.html#L143'>buf</a>               143 tools/build.c    if (((long *) buf)[4] != 0)
<a href='../S/96.html#L146'>buf</a>               146 tools/build.c    if (((long *) buf)[5] != 0)
<a href='../S/96.html#L149'>buf</a>               149 tools/build.c    if (((long *) buf)[7] != 0)
<a href='../S/96.html#L152'>buf</a>               152 tools/build.c    i = read (id, buf, sizeof buf);
<a href='../S/96.html#L157'>buf</a>               157 tools/build.c    if ((*(unsigned short *) (buf + 510)) != 0xAA55)
<a href='../S/96.html#L160'>buf</a>               160 tools/build.c    buf[508] = (char) minor_root;
<a href='../S/96.html#L161'>buf</a>               161 tools/build.c    buf[509] = (char) major_root;
<a href='../S/96.html#L163'>buf</a>               163 tools/build.c    i = write (1, buf, 512);
<a href='../S/96.html#L174'>buf</a>               174 tools/build.c    if (read (id, buf, MINIX_HEADER) != MINIX_HEADER)
<a href='../S/96.html#L177'>buf</a>               177 tools/build.c    if (((long *) buf)[0] != 0x04100301)
<a href='../S/96.html#L180'>buf</a>               180 tools/build.c    if (((long *) buf)[1] != MINIX_HEADER)
<a href='../S/96.html#L183'>buf</a>               183 tools/build.c    if (((long *) buf)[3] != 0)
<a href='../S/96.html#L186'>buf</a>               186 tools/build.c    if (((long *) buf)[4] != 0)
<a href='../S/96.html#L189'>buf</a>               189 tools/build.c    if (((long *) buf)[5] != 0)
<a href='../S/96.html#L192'>buf</a>               192 tools/build.c    if (((long *) buf)[7] != 0)
<a href='../S/96.html#L195'>buf</a>               195 tools/build.c    for (i = 0; (c = read (id, buf, sizeof buf)) &gt; 0; i += c)
<a href='../S/96.html#L196'>buf</a>               196 tools/build.c      if (write (1, buf, c) != c)
<a href='../S/96.html#L207'>buf</a>               207 tools/build.c    for (c = 0; c &lt; sizeof (buf); c++)
<a href='../S/96.html#L208'>buf</a>               208 tools/build.c      buf[c] = '\0';
<a href='../S/96.html#L213'>buf</a>               213 tools/build.c        if (c &gt; sizeof (buf))
<a href='../S/96.html#L214'>buf</a>               214 tools/build.c  	c = sizeof (buf);
<a href='../S/96.html#L215'>buf</a>               215 tools/build.c        if (write (1, buf, c) != c)
<a href='../S/96.html#L225'>buf</a>               225 tools/build.c    if (read (id, buf, GCC_HEADER) != GCC_HEADER)
<a href='../S/96.html#L228'>buf</a>               228 tools/build.c    if (((long *) buf)[5] != 0)
<a href='../S/96.html#L231'>buf</a>               231 tools/build.c    for (i = 0; (c = read (id, buf, sizeof buf)) &gt; 0; i += c)
<a href='../S/96.html#L232'>buf</a>               232 tools/build.c      if (write (1, buf, c) != c)
</pre>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?