Welcome to The Fiwix Project
A UNIX-like kernel for the i386 architecture
count 42 drivers/block/dma.c void start_dma(int channel, void *address, unsigned int count, int mode) count 61 drivers/block/dma.c count--; count 64 drivers/block/dma.c outport_b(dma_count[channel], LOW_BYTE(count)); count 65 drivers/block/dma.c outport_b(dma_count[channel], HIGH_BYTE(count)); count 173 drivers/char/console.c int from, count; count 178 drivers/char/console.c count = vc->columns - vc->x; count 179 drivers/char/console.c video.write_screen(vc, from, count, vc->color_attr); count 181 drivers/char/console.c count = SCREEN_SIZE - from; count 185 drivers/char/console.c count = vc->x + 1; count 186 drivers/char/console.c video.write_screen(vc, from, count, vc->color_attr); count 188 drivers/char/console.c count = vc->y * vc->columns; count 192 drivers/char/console.c count = SCREEN_SIZE; count 197 drivers/char/console.c video.write_screen(vc, from, count, vc->color_attr); count 202 drivers/char/console.c int from, count; count 207 drivers/char/console.c count = vc->columns - vc->x; count 211 drivers/char/console.c count = vc->x + 1; count 215 drivers/char/console.c count = vc->columns; count 220 drivers/char/console.c video.write_screen(vc, from, count, vc->color_attr); count 223 drivers/char/console.c static void csi_X(struct vconsole *vc, int count) count 228 drivers/char/console.c count = count > (vc->columns - vc->x) ? vc->columns - vc->x : count; count 229 drivers/char/console.c video.write_screen(vc, from, count, vc->color_attr); count 232 drivers/char/console.c static void csi_L(struct vconsole *vc, int count) count 234 drivers/char/console.c if(count > (vc->lines - vc->top)) { count 235 drivers/char/console.c count = vc->lines - vc->top; count 237 drivers/char/console.c while(count--) { count 242 drivers/char/console.c static void csi_M(struct vconsole *vc, int count) count 244 drivers/char/console.c if(count > (vc->lines - vc->top)) { count 245 drivers/char/console.c count = vc->lines - vc->top; count 247 drivers/char/console.c while(count--) { count 252 drivers/char/console.c static void csi_P(struct vconsole *vc, int count) count 254 drivers/char/console.c if(count > vc->columns) { count 255 drivers/char/console.c count = vc->columns; count 257 drivers/char/console.c while(count--) { count 262 drivers/char/console.c static void csi_at(struct vconsole *vc, int count) count 264 drivers/char/console.c if(count > vc->columns) { count 265 drivers/char/console.c count = vc->columns; count 267 drivers/char/console.c while(count--) { count 371 drivers/char/console.c static void insert_seq(struct tty *tty, char *buf, int count) count 373 drivers/char/console.c while(count--) { count 393 drivers/char/console.c static void echo_char(struct vconsole *vc, unsigned char *buf, unsigned int count) count 407 drivers/char/console.c while(count--) { count 536 drivers/char/console.c while(!vc->scrlock && tty->write_q.count > 0) { count 940 drivers/char/console.c unsigned char count; count 947 drivers/char/console.c col = count = 0; count 966 drivers/char/console.c count = vc->x - col; count 968 drivers/char/console.c while(count--) { count 973 drivers/char/console.c void console_flush_log_buf(char *buffer, unsigned int count) count 984 drivers/char/console.c while(count) { count 989 drivers/char/console.c count--; count 83 drivers/char/fb.c int fb_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 92 drivers/char/fb.c count = MIN(count, video.memsize - fd_table->offset); count 93 drivers/char/fb.c memcpy_b(buffer, (void *)addr, count); count 94 drivers/char/fb.c fd_table->offset += count; count 95 drivers/char/fb.c return count; count 98 drivers/char/fb.c int fb_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 107 drivers/char/fb.c count = MIN(count, video.memsize - fd_table->offset); count 108 drivers/char/fb.c memcpy_b((void *)addr, buffer, count); count 109 drivers/char/fb.c fd_table->offset += count; count 110 drivers/char/fb.c return count; count 611 drivers/char/keyboard.c if(tty->count) { count 735 drivers/char/keyboard.c if(!tty->read_q.count) { count 165 drivers/char/lp.c int lp_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 177 drivers/char/lp.c for(n = 0; n < count; n++) { count 292 drivers/char/memdev.c int mem_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 300 drivers/char/memdev.c count = MIN(count, physical_memory - fd_table->offset); count 301 drivers/char/memdev.c memcpy_b(buffer, (void *)P2V(fd_table->offset), count); count 302 drivers/char/memdev.c fd_table->offset += count; count 303 drivers/char/memdev.c return count; count 306 drivers/char/memdev.c int mem_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 314 drivers/char/memdev.c count = MIN(count, physical_memory - fd_table->offset); count 315 drivers/char/memdev.c memcpy_b((void *)P2V(fd_table->offset), buffer, count); count 316 drivers/char/memdev.c fd_table->offset += count; count 317 drivers/char/memdev.c return count; count 335 drivers/char/memdev.c int kmem_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 340 drivers/char/memdev.c if(P2V(fd_table->offset + count) < physical_memory) { count 341 drivers/char/memdev.c memcpy_b(buffer, (void *)P2V(fd_table->offset), count); count 342 drivers/char/memdev.c fd_table->offset += count; count 344 drivers/char/memdev.c count = 0; count 346 drivers/char/memdev.c return count; count 349 drivers/char/memdev.c int kmem_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 354 drivers/char/memdev.c if(P2V(fd_table->offset + count) < physical_memory) { count 355 drivers/char/memdev.c memcpy_b((void *)P2V(fd_table->offset), buffer, count); count 356 drivers/char/memdev.c fd_table->offset += count; count 358 drivers/char/memdev.c count = 0; count 360 drivers/char/memdev.c return count; count 378 drivers/char/memdev.c int null_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 383 drivers/char/memdev.c int null_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 385 drivers/char/memdev.c return count; count 403 drivers/char/memdev.c int zero_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 405 drivers/char/memdev.c memset_b(buffer, NULL, count); count 406 drivers/char/memdev.c return count; count 409 drivers/char/memdev.c int zero_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 411 drivers/char/memdev.c return count; count 429 drivers/char/memdev.c int urandom_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 433 drivers/char/memdev.c for(n = 0; n < count; n++) { count 438 drivers/char/memdev.c return count; count 441 drivers/char/memdev.c int urandom_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 443 drivers/char/memdev.c return count; count 206 drivers/char/serial.c unsigned short int col, n, count; count 211 drivers/char/serial.c col = count = 0; count 230 drivers/char/serial.c count = tty->column - col; count 232 drivers/char/serial.c while(count--) { count 281 drivers/char/serial.c int count; count 285 drivers/char/serial.c if(!tty->write_q.count) { count 290 drivers/char/serial.c count = 0; count 291 drivers/char/serial.c while(tty->write_q.count > 0 && count < UART_FIFO_SIZE) { count 294 drivers/char/serial.c count++; count 297 drivers/char/serial.c if(!tty->write_q.count) { count 396 drivers/char/serial.c if(tty->count > 1) { count 491 drivers/char/serial.c if(tty->read_q.count) { count 543 drivers/char/serial.c tty->count = 0; count 146 drivers/char/tty.c while(tty->cooked_q.count > 0) { count 158 drivers/char/tty.c while(tty->cooked_q.count > 0) { count 193 drivers/char/tty.c tty_table[n].count = 0; count 290 drivers/char/tty.c while(tty->read_q.count > 0) { count 448 drivers/char/tty.c tty->count++; count 475 drivers/char/tty.c tty->count--; count 476 drivers/char/tty.c if(!tty->count) { count 491 drivers/char/tty.c int tty_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 514 drivers/char/tty.c while(count > 0) { count 517 drivers/char/tty.c while(n < count) { count 539 drivers/char/tty.c while(n < count) { count 558 drivers/char/tty.c while(kstat.ticks - ini_ticks < timeout && !tty->cooked_q.count) { count 569 drivers/char/tty.c while(n < count) { count 578 drivers/char/tty.c if(tty->cooked_q.count > 0) { count 579 drivers/char/tty.c if(n < MIN(tty->termios.c_cc[VMIN], count)) { count 583 drivers/char/tty.c if(n >= MIN(tty->termios.c_cc[VMIN], count)) { count 599 drivers/char/tty.c if(!tty->cooked_q.count) { count 606 drivers/char/tty.c if(tty->cooked_q.count > 0) { count 608 drivers/char/tty.c if(n < count) { count 639 drivers/char/tty.c int tty_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 668 drivers/char/tty.c while(count && n < count) { count 677 drivers/char/tty.c if(n == count) { count 684 drivers/char/tty.c if(tty->write_q.count > 0) { count 982 drivers/char/tty.c if(tty->cooked_q.count > 0) { count 989 drivers/char/tty.c if(!tty->write_q.count) { count 120 drivers/char/tty_queue.c q->count -= tmp->end_off - tmp->start_off; count 141 drivers/char/tty_queue.c q->count -= tmp->end_off - tmp->start_off; count 166 drivers/char/tty_queue.c q->count++; count 193 drivers/char/tty_queue.c q->count--; count 218 drivers/char/tty_queue.c q->count--; count 244 drivers/char/tty_queue.c return (NR_CB_QUEUE * CBSIZE) - q->count; count 122 drivers/char/vt.c if(!tty->count) { count 166 drivers/char/vt.c if(tty->count) { count 281 drivers/video/fbcon.c void fbcon_write_screen(struct vconsole *vc, int from, int count, short int color) count 289 drivers/video/fbcon.c memset_w(screen + from, color, count); count 297 drivers/video/fbcon.c lines = count / vc->columns; count 298 drivers/video/fbcon.c columns = x + count; count 312 drivers/video/fbcon.c memset_w(screen + from, color, count); count 334 drivers/video/fbcon.c int soffset, poffset, count; count 366 drivers/video/fbcon.c count = video.fb_pitch * video.fb_char_height; count 367 drivers/video/fbcon.c memset_l(vidmem + video.fb_vsize - count, 0, count / sizeof(unsigned int)); count 370 drivers/video/fbcon.c count = vc->columns * (vc->lines - top - 1); count 376 drivers/video/fbcon.c memcpy_w(screen + soffset, screen + top, count); count 377 drivers/video/fbcon.c memset_w(screen + soffset + count, BLANK_MEM, top); count 401 drivers/video/fbcon.c count = video.fb_pitch * video.fb_char_height; count 402 drivers/video/fbcon.c memset_l(vidmem + (top * count), 0, count / sizeof(unsigned int)); count 80 drivers/video/vgacon.c int offset, count; count 86 drivers/video/vgacon.c count = vc->columns - vc->x; count 89 drivers/video/vgacon.c memcpy_w(vidmem + offset, vidmem + offset + 1, count); count 90 drivers/video/vgacon.c memset_w(vidmem + offset + count, BLANK_MEM, 1); count 92 drivers/video/vgacon.c memcpy_w(screen + offset, screen + offset + 1, count); count 93 drivers/video/vgacon.c memset_w(screen + offset + count, BLANK_MEM, 1); count 147 drivers/video/vgacon.c void vgacon_write_screen(struct vconsole *vc, int from, int count, short int color) count 153 drivers/video/vgacon.c memset_w(screen + from, color, count); count 158 drivers/video/vgacon.c memset_w(vidmem + from, color, count); count 159 drivers/video/vgacon.c memset_w(screen + from, color, count); count 180 drivers/video/vgacon.c int n, offset, count; count 191 drivers/video/vgacon.c count = vc->columns * (vc->lines - top - 1); count 195 drivers/video/vgacon.c memcpy_w(vidmem + offset, vidmem + top, count); count 196 drivers/video/vgacon.c memset_w(vidmem + offset + count, BLANK_MEM, vc->columns); count 198 drivers/video/vgacon.c memcpy_w(screen + offset, screen + top, count); count 199 drivers/video/vgacon.c memset_w(screen + offset + count, BLANK_MEM, vc->columns); count 202 drivers/video/vgacon.c count = vc->columns; count 204 drivers/video/vgacon.c memcpy_w(screen + (vc->columns * n), screen + (vc->columns * (n - 1)), count); count 206 drivers/video/vgacon.c memcpy_w(vidmem + (vc->columns * n), screen + (vc->columns * (n - 1)), count); count 209 drivers/video/vgacon.c memset_w(screen + (top * vc->columns), BLANK_MEM, count); count 211 drivers/video/vgacon.c memset_w(vidmem + (top * vc->columns), BLANK_MEM, count); count 243 fs/devices.c int blk_dev_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 267 fs/devices.c count = (fd_table->offset + count > device_size) ? device_size - fd_table->offset : count; count 268 fs/devices.c if(!count || fd_table->offset > device_size) { count 271 fs/devices.c while(count) { count 278 fs/devices.c bytes = MIN(bytes, count); count 281 fs/devices.c count -= bytes; count 288 fs/devices.c int blk_dev_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 312 fs/devices.c count = (fd_table->offset + count > device_size) ? device_size - fd_table->offset : count; count 313 fs/devices.c if(!count || fd_table->offset > device_size) { count 316 fs/devices.c while(count) { count 323 fs/devices.c bytes = MIN(bytes, count); count 326 fs/devices.c count -= bytes; count 72 fs/ext2/dir.c int ext2_dir_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 77 fs/ext2/dir.c int ext2_dir_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 82 fs/ext2/dir.c int ext2_dir_readdir(struct inode *i, struct fd *fd_table, struct dirent *dirent, unsigned int count) count 104 fs/ext2/dir.c while(fd_table->offset < i->i_size && count > 0) { count 121 fs/ext2/dir.c if((size + dirent_len) < count) { count 128 fs/ext2/dir.c count -= size; count 130 fs/ext2/dir.c count = 0; count 81 fs/ext2/file.c int ext2_file_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 98 fs/ext2/file.c while(total_written < count) { count 105 fs/ext2/file.c bytes = MIN(bytes, (count - total_written)); count 104 fs/ext2/inode.c i->count = 1; count 170 fs/ext2/namei.c dir_new->count++; count 396 fs/ext2/namei.c i->count = 1; count 484 fs/ext2/namei.c i->count = 1; count 593 fs/ext2/namei.c i->count = 1; count 674 fs/ext2/namei.c i->count = 1; count 60 fs/ext2/symlink.c int ext2_readlink(struct inode *i, char *buffer, __size_t count) count 72 fs/ext2/symlink.c count = MIN(count, i->i_size); count 73 fs/ext2/symlink.c if(!count) { count 77 fs/ext2/symlink.c count = MIN(count, blksize); count 83 fs/ext2/symlink.c memcpy_b(buffer, buf->data, count); count 86 fs/ext2/symlink.c memcpy_b(buffer, (char *)i->u.ext2.i_data, count); count 88 fs/ext2/symlink.c buffer[count] = NULL; count 90 fs/ext2/symlink.c return count; count 26 fs/fd.c if(fd_table[n].count == 0) { count 29 fs/fd.c fd_table[n].count = 1; count 43 fs/fd.c fd_table[fd].count = 0; count 158 fs/inode.c i->count = 0; count 256 fs/inode.c i->count = 1; count 262 fs/inode.c i->count = 1; count 293 fs/inode.c if(!i->count) { count 296 fs/inode.c i->count++; count 310 fs/inode.c i->count = 1; count 336 fs/inode.c if(i->dev == dev && i->count) { count 337 fs/inode.c if(i == root && i->count == 1) { count 341 fs/inode.c printk("WARNING: root %d with count %d (on dev %d,%d)\n", root->inode, root->count, MAJOR(i->dev), MINOR(i->dev)); count 342 fs/inode.c printk("WARNING: inode %d with count %d (on dev %d,%d)\n", i->inode, i->count, MAJOR(i->dev), MINOR(i->dev)); count 358 fs/inode.c if(!i->count) { count 363 fs/inode.c if(--i->count > 0) { count 438 fs/inode.c i->count = 1; count 71 fs/iso9660/dir.c int iso9660_dir_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 76 fs/iso9660/dir.c int iso9660_dir_readdir(struct inode *i, struct fd *fd_table, struct dirent *dirent, unsigned int count) count 100 fs/iso9660/dir.c while(doffset < count) { count 117 fs/iso9660/dir.c if((size + dirent_len) < count) { count 144 fs/iso9660/dir.c if((size + dirent_len) < count) { count 136 fs/iso9660/inode.c i->count = 1; count 61 fs/iso9660/symlink.c int iso9660_readlink(struct inode *i, char *buffer, __size_t count) count 73 fs/iso9660/symlink.c size_read = MIN(size_read, count); count 24 fs/minix/bitmaps.c int n, n2, last, bits, count, mapb; count 27 fs/minix/bitmaps.c count = mapb = 0; count 41 fs/minix/bitmaps.c count++; count 56 fs/minix/bitmaps.c return count; count 72 fs/minix/dir.c int minix_dir_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 77 fs/minix/dir.c int minix_dir_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 82 fs/minix/dir.c int minix_dir_readdir(struct inode *i, struct fd *fd_table, struct dirent *dirent, unsigned int count) count 104 fs/minix/dir.c while(fd_table->offset < i->i_size && count > 0) { count 121 fs/minix/dir.c if((size + dirent_len) < count) { count 128 fs/minix/dir.c count -= size; count 130 fs/minix/dir.c count = 0; count 81 fs/minix/file.c int minix_file_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 98 fs/minix/file.c while(total_written < count) { count 105 fs/minix/file.c bytes = MIN(bytes, (count - total_written)); count 142 fs/minix/namei.c dir_new->count++; count 344 fs/minix/namei.c i->count = 1; count 435 fs/minix/namei.c i->count = 1; count 536 fs/minix/namei.c i->count = 1; count 611 fs/minix/namei.c i->count = 1; count 59 fs/minix/symlink.c int minix_readlink(struct inode *i, char *buffer, __size_t count) count 71 fs/minix/symlink.c count = MIN(count, i->i_size); count 72 fs/minix/symlink.c if(!count) { count 76 fs/minix/symlink.c count = MIN(count, blksize); count 88 fs/minix/symlink.c memcpy_b(buffer, buf->data, count); count 90 fs/minix/symlink.c buffer[count] = NULL; count 92 fs/minix/symlink.c return count; count 75 fs/minix/v1_inode.c i->count = 1; count 76 fs/minix/v2_inode.c i->count = 1; count 67 fs/namei.c dir->count++; count 75 fs/namei.c dir->count++; count 127 fs/namei.c dir->count++; count 162 fs/namei.c dir->count++; count 23 fs/pipefs/fifo.c if(i->count == 1) { count 50 fs/pipefs/pipe.c int pipefs_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 59 fs/pipefs/pipe.c while(count) { count 69 fs/pipefs/pipe.c n = MIN(limit, count); count 109 fs/pipefs/pipe.c int pipefs_write(struct inode *i, struct fd *fd_table, const char *buffer, __size_t count) count 119 fs/pipefs/pipe.c while(bytes_written < count) { count 136 fs/pipefs/pipe.c n = MIN((count - bytes_written), (limit - i->u.pipefs.i_writeoff)); count 86 fs/pipefs/super.c i->count = 2; count 227 fs/procfs/data.c if(!pg->count) { count 230 fs/procfs/data.c kstat.shared += pg->count - 1; count 395 fs/procfs/data.c if(fd_table[n].count != 0) { count 61 fs/procfs/dir.c static int proc_listdir(char *buffer, int count) count 86 fs/procfs/dir.c if(size + sizeof(struct procfs_dir_entry) > (count - 1)) { count 136 fs/procfs/dir.c static int dir_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 150 fs/procfs/dir.c len = proc_listdir(buf, count); count 165 fs/procfs/dir.c if((len + bytes) > (count - 1)) { count 166 fs/procfs/dir.c printk("WARNING: %s(): len (%d) > count (%d).\n", __FUNCTION__, len, count); count 189 fs/procfs/dir.c int procfs_dir_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 194 fs/procfs/dir.c int procfs_dir_readdir(struct inode *i, struct fd *fd_table, struct dirent *dirent, unsigned int count) count 217 fs/procfs/dir.c if((count = MIN(total_read, count)) == 0) { count 229 fs/procfs/dir.c if((doffset + dirent_len) <= count) { count 74 fs/procfs/file.c int procfs_file_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 101 fs/procfs/file.c count = (fd_table->offset + count > size) ? size - fd_table->offset : count; count 102 fs/procfs/file.c if(!count) { count 108 fs/procfs/file.c bytes = MIN(bytes, count); count 111 fs/procfs/file.c count -= bytes; count 54 fs/procfs/inode.c i->count = 1; count 61 fs/procfs/symlink.c int procfs_readlink(struct inode *i, char *buffer, __size_t count) count 80 fs/procfs/symlink.c if(size_read > count) { count 81 fs/procfs/symlink.c size_read = count; count 122 fs/procfs/symlink.c p->pwd->count++; count 130 fs/procfs/symlink.c p->vma->inode->count++; count 138 fs/procfs/symlink.c p->root->count++; count 209 fs/super.c mt->sb.root->count++; count 211 fs/super.c mt->sb.dir->count++; count 215 fs/super.c current->root->count++; count 217 fs/super.c current->pwd->count++; count 24 include/fiwix/fs.h unsigned short int count; /* number of opened instances */ count 90 include/fiwix/fs.h __s16 count; count 54 include/fiwix/mm.h int count; /* usage counter */ count 28 include/fiwix/tty.h unsigned short int count; count 51 include/fiwix/tty.h short int count; count 49 kernel/sched.c int count; count 59 kernel/sched.c count = -1; count 63 kernel/sched.c if(p->cpu_count > count) { count 64 kernel/sched.c count = p->cpu_count; count 69 kernel/sched.c if(count) { count 26 kernel/syscalls/close.c if(--fd_table[fd].count) { count 35 kernel/syscalls/dup.c fd_table[current->fd[new_ufd]].count++; count 36 kernel/syscalls/dup2.c fd_table[current->fd[new_ufd]].count++; count 32 kernel/syscalls/fchdir.c current->pwd->count++; count 37 kernel/syscalls/fcntl.c fd_table[current->fd[new_ufd]].count++; count 23 kernel/syscalls/fork.c int count, pages; count 36 kernel/syscalls/fork.c count = 0; count 39 kernel/syscalls/fork.c count++; count 43 kernel/syscalls/fork.c if(count > current->rlim[RLIMIT_NPROC].rlim_cur) { count 85 kernel/syscalls/fork.c vma->inode->count++; count 133 kernel/syscalls/fork.c fd_table[current->fd[n]].count++; count 137 kernel/syscalls/fork.c current->root->count++; count 140 kernel/syscalls/fork.c current->pwd->count++; count 18 kernel/syscalls/getdents.c int sys_getdents(unsigned int ufd, struct dirent *dirent, unsigned int count) count 24 kernel/syscalls/getdents.c printk("(pid %d) sys_getdents(%d, 0x%08x, %d)", current->pid, ufd, (unsigned int)dirent, count); count 38 kernel/syscalls/getdents.c errno = i->fsop->readdir(i, &fd_table[current->fd[ufd]], dirent, count); count 18 kernel/syscalls/kill.c int count; count 29 kernel/syscalls/kill.c count = 0; count 32 kernel/syscalls/kill.c count++; count 37 kernel/syscalls/kill.c return count ? 0 : -ESRCH; count 17 kernel/syscalls/read.c int sys_read(unsigned int ufd, char *buf, int count) count 23 kernel/syscalls/read.c printk("(pid %d) sys_read(%d, 0x%08x, %d) -> ", current->pid, ufd, buf, count); count 27 kernel/syscalls/read.c if((errno = check_user_area(VERIFY_WRITE, buf, count))) { count 33 kernel/syscalls/read.c if(!count) { count 36 kernel/syscalls/read.c if(count < 0) { count 42 kernel/syscalls/read.c errno = i->fsop->read(i, &fd_table[current->fd[ufd]], buf, count); count 43 kernel/syscalls/rmdir.c if(i == current->root || i->mount_point || i->count > 1) { count 53 kernel/syscalls/select.c int n, count; count 56 kernel/syscalls/select.c count = 0; count 66 kernel/syscalls/select.c count++; count 72 kernel/syscalls/select.c count++; count 78 kernel/syscalls/select.c count++; count 83 kernel/syscalls/select.c if(count || !current->timeout || current->sigpending & ~current->sigblocked) { count 89 kernel/syscalls/select.c return count; count 17 kernel/syscalls/write.c int sys_write(unsigned int ufd, const char *buf, int count) count 24 kernel/syscalls/write.c printk("(pid %d) sys_write(%d, 0x%08x, %d) -> ", current->pid, ufd, buf, count); count 28 kernel/syscalls/write.c if((errno = check_user_area(VERIFY_READ, buf, count))) { count 34 kernel/syscalls/write.c if(!count) { count 37 kernel/syscalls/write.c if(count < 0) { count 42 kernel/syscalls/write.c errno = i->fsop->write(i, &fd_table[current->fd[ufd]], buf, count); count 64 kernel/timer.c static int count = LOAD_FREQ; count 66 kernel/timer.c if(count-- > 0) { count 70 kernel/timer.c count = LOAD_FREQ; count 23 lib/printk.c unsigned short int count; count 27 lib/printk.c count = strlen(buffer); count 30 lib/printk.c while(count--) { count 78 lib/printk.c int num, count; count 83 lib/printk.c count = 0; count 89 lib/printk.c while((c = *(format++)) && count < MAX_BUF) { count 119 lib/printk.c count++; count 120 lib/printk.c } while(ptr_s != str && count < MAX_BUF); count 122 lib/printk.c while(*p && count < MAX_BUF) { count 124 lib/printk.c count++; count 149 lib/printk.c count++; count 150 lib/printk.c } while(ptr_s != str && count < MAX_BUF); count 152 lib/printk.c while(*p && count < MAX_BUF) { count 154 lib/printk.c count++; count 181 lib/printk.c count++; count 182 lib/printk.c } while(ptr_s != str && count < MAX_BUF); count 184 lib/printk.c while(*p && count < MAX_BUF) { count 186 lib/printk.c count++; count 214 lib/printk.c count++; count 215 lib/printk.c } while(ptr_s != str && count < MAX_BUF); count 217 lib/printk.c while(*p && count < MAX_BUF) { count 219 lib/printk.c count++; count 247 lib/printk.c count++; count 248 lib/printk.c } while(ptr_s != str && count < MAX_BUF); count 250 lib/printk.c while(*p && count < MAX_BUF) { count 252 lib/printk.c count++; count 283 lib/printk.c while((c = *(ptr_s++)) && count < MAX_BUF) { count 285 lib/printk.c count++; count 287 lib/printk.c while(num-- && count < MAX_BUF) { count 289 lib/printk.c count++; count 331 lib/printk.c count++; count 207 lib/strings.c void memcpy_b(void *dest, const void *src, unsigned int count) count 214 lib/strings.c while(count--) { count 221 lib/strings.c void memcpy_w(void *dest, const void *src, unsigned int count) count 228 lib/strings.c while(count--) { count 235 lib/strings.c void memcpy_l(void *dest, const void *src, unsigned int count) count 242 lib/strings.c while(count--) { count 249 lib/strings.c void memset_b(void *dest, unsigned char value, unsigned int count) count 254 lib/strings.c while(count--) { count 260 lib/strings.c void memset_w(void *dest, unsigned short int value, unsigned int count) count 265 lib/strings.c while(count--) { count 271 lib/strings.c void memset_l(void *dest, unsigned int value, unsigned int count) count 276 lib/strings.c while(count--) { count 49 mm/fault.c if(pg->count > 1) { count 69 mm/fault.c if(pg->count == 1) { count 177 mm/memory.c pg->count++; count 188 mm/memory.c int n, count; count 191 mm/memory.c for(n = 0, count = 0; n < PD_ENTRIES; n++) { count 195 mm/memory.c count++; count 198 mm/memory.c return count; count 27 mm/mmap.c int count; count 60 mm/mmap.c inode = major = minor = count = 0; count 65 mm/mmap.c count = vma->inode->count; count 67 mm/mmap.c printk("[%02d] 0x%08x-0x%08x %c%c%c%c 0x%08x %02d:%02d %- 10u <%d> [%s] (%d)\n", n, vma->start, vma->end, r, w, x, f, vma->offset, major, minor, inode, vma->o_mode, section, count); count 393 mm/mmap.c i->count++; count 179 mm/page.c pg->count = 1; count 198 mm/page.c if(!pg->count) { count 201 mm/page.c pg->count++; count 221 mm/page.c if(!pg->count) { count 226 mm/page.c if(--pg->count > 0) { count 257 mm/page.c void update_page_cache(struct inode *i, __off_t offset, const char *buf, int count) count 267 mm/page.c if(count) { count 268 mm/page.c bytes = MIN(bytes, count); count 287 mm/page.c fd_table.count = 0; count 336 mm/page.c int file_read(struct inode *i, struct fd *fd_table, char *buffer, __size_t count) count 351 mm/page.c count = (fd_table->offset + count > i->i_size) ? i->i_size - fd_table->offset : count; count 352 mm/page.c if(!count) { count 376 mm/page.c bytes = MIN(bytes, count); count 379 mm/page.c count -= bytes;