tag | line | file | source code |
p | 250 | drivers/block/blk.h | struct task_struct * p; |
p | 281 | drivers/block/blk.h | if ((p = req->waiting) != NULL) { |
p | 283 | drivers/block/blk.h | p->state = TASK_RUNNING; |
p | 284 | drivers/block/blk.h | if (p->counter > current->counter) |
p | 39 | drivers/block/genhd.c | struct partition *p; |
p | 58 | drivers/block/genhd.c | p = (struct partition *) (0x1BE + bh->b_data); |
p | 63 | drivers/block/genhd.c | if (p->sys_ind == EXTENDED_PARTITION || |
p | 64 | drivers/block/genhd.c | !(hd->part[current_minor].nr_sects = p->nr_sects)) |
p | 66 | drivers/block/genhd.c | hd->part[current_minor].start_sect = this_sector + p->start_sect; |
p | 71 | drivers/block/genhd.c | p++; |
p | 79 | drivers/block/genhd.c | if (p->sys_ind != EXTENDED_PARTITION || |
p | 80 | drivers/block/genhd.c | !(hd->part[current_minor].nr_sects = p->nr_sects)) |
p | 82 | drivers/block/genhd.c | hd->part[current_minor].start_sect = first_sector + p->start_sect; |
p | 83 | drivers/block/genhd.c | this_sector = first_sector + p->start_sect; |
p | 98 | drivers/block/genhd.c | struct partition *p; |
p | 113 | drivers/block/genhd.c | p = (struct partition *) (0x1BE + bh->b_data); |
p | 114 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
p | 115 | drivers/block/genhd.c | if (!(hd->part[minor].nr_sects = p->nr_sects)) |
p | 117 | drivers/block/genhd.c | hd->part[minor].start_sect = first_sector + p->start_sect; |
p | 121 | drivers/block/genhd.c | if (p->sys_ind == EXTENDED_PARTITION) { |
p | 131 | drivers/block/genhd.c | p = (struct partition *) (0x1BE + bh->b_data); |
p | 133 | drivers/block/genhd.c | p--; |
p | 136 | drivers/block/genhd.c | if (!(p->start_sect && p->nr_sects)) |
p | 138 | drivers/block/genhd.c | hd->part[current_minor].start_sect = p->start_sect; |
p | 139 | drivers/block/genhd.c | hd->part[current_minor].nr_sects = p->nr_sects; |
p | 200 | drivers/block/genhd.c | struct gendisk *p; |
p | 207 | drivers/block/genhd.c | for (p = gendisk_head ; p ; p=p->next) { |
p | 208 | drivers/block/genhd.c | setup_dev(p); |
p | 209 | drivers/block/genhd.c | nr += p->nr_real; |
p | 84 | drivers/block/mcd.c | static void bin2bcd(unsigned char *p); |
p | 899 | drivers/block/mcd.c | bin2bcd(unsigned char *p) |
p | 903 | drivers/block/mcd.c | u = *p % 10; |
p | 904 | drivers/block/mcd.c | t = *p / 10; |
p | 905 | drivers/block/mcd.c | *p = u | (t << 4); |
p | 453 | drivers/block/sbpcd.c | static void bin2bcdx(u_char *p) /* must work only up to 75 or 99 */ |
p | 455 | drivers/block/sbpcd.c | *p=((*p/10)<<4)|(*p%10); |
p | 1388 | drivers/block/sbpcd.c | static int convert_UPC(u_char *p) |
p | 1392 | drivers/block/sbpcd.c | p++; |
p | 1393 | drivers/block/sbpcd.c | if (!new_drive) p[13]=0; |
p | 1396 | drivers/block/sbpcd.c | if (new_drive) DS[d].UPC_buf[i]=swap_nibbles(*p++); |
p | 1399 | drivers/block/sbpcd.c | DS[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
p | 1400 | drivers/block/sbpcd.c | DS[d].UPC_buf[i] |= *p++; |
p | 2513 | drivers/block/sbpcd.c | u_char *p; |
p | 2564 | drivers/block/sbpcd.c | p = DS[d].sbp_buf + frame * CD_FRAMESIZE; |
p | 2567 | drivers/block/sbpcd.c | READ_DATA(CDi_data, p, CD_FRAMESIZE); |
p | 2767 | drivers/block/sbpcd.c | void sbpcd_setup(char *s, int *p) |
p | 2769 | drivers/block/sbpcd.c | DPRINTF((DBG_INI,"SBPCD: sbpcd_setup called with %04X,%s\n",p[1], s)); |
p | 2772 | drivers/block/sbpcd.c | if (p[0]>0) sbpcd_ioaddr=p[1]; |
p | 702 | drivers/char/console.c | static void respond_string(char * p, int currcons, struct tty_struct * tty) |
p | 704 | drivers/char/console.c | while (*p) { |
p | 705 | drivers/char/console.c | put_tty_queue(*p, &tty->read_q); |
p | 706 | drivers/char/console.c | p++; |
p | 748 | drivers/char/console.c | unsigned char *p; |
p | 751 | drivers/char/console.c | for (p = (unsigned char *)origin+1; p < (unsigned char *)scr_end; p+=2) |
p | 752 | drivers/char/console.c | *p = (*p & 0x88) | (((*p >> 4) | (*p << 4)) & 0x77); |
p | 754 | drivers/char/console.c | for (p = (unsigned char *)origin+1; p < (unsigned char *)scr_end; p+=2) |
p | 755 | drivers/char/console.c | *p ^= *p & 0x07 == 1 ? 0x70 : 0x77; |
p | 843 | drivers/char/console.c | unsigned short * p = (unsigned short *) pos; |
p | 846 | drivers/char/console.c | tmp = *p; |
p | 847 | drivers/char/console.c | *p = old; |
p | 849 | drivers/char/console.c | p++; |
p | 863 | drivers/char/console.c | unsigned short * p = (unsigned short *) pos; |
p | 866 | drivers/char/console.c | *p = *(p+1); |
p | 867 | drivers/char/console.c | p++; |
p | 869 | drivers/char/console.c | *p = video_erase_char; |
p | 1635 | drivers/char/console.c | unsigned char *p, *p1, *p2; |
p | 1641 | drivers/char/console.c | p = p1; |
p | 1643 | drivers/char/console.c | p2 = p; |
p | 1645 | drivers/char/console.c | for (p = p1; p <= p2; p += 2) |
p | 1646 | drivers/char/console.c | *p = (*p & 0x88) | ((*p << 4) & 0x70) | ((*p >> 4) & 0x07); |
p | 1653 | drivers/char/console.c | static inline int atedge(const int p) |
p | 1655 | drivers/char/console.c | return (!(p % video_size_row) || !((p + 2) % video_size_row)); |
p | 38 | drivers/char/mem.c | unsigned long p = file->f_pos; |
p | 43 | drivers/char/mem.c | if (p >= high_memory) |
p | 45 | drivers/char/mem.c | if (count > high_memory - p) |
p | 46 | drivers/char/mem.c | count = high_memory - p; |
p | 48 | drivers/char/mem.c | while (p < PAGE_SIZE && count > 0) { |
p | 51 | drivers/char/mem.c | p++; |
p | 55 | drivers/char/mem.c | memcpy_tofs(buf,(void *) p,count); |
p | 63 | drivers/char/mem.c | unsigned long p = file->f_pos; |
p | 68 | drivers/char/mem.c | if (p >= high_memory) |
p | 70 | drivers/char/mem.c | if (count > high_memory - p) |
p | 71 | drivers/char/mem.c | count = high_memory - p; |
p | 73 | drivers/char/mem.c | while (p < PAGE_SIZE && count > 0) { |
p | 76 | drivers/char/mem.c | p++; |
p | 80 | drivers/char/mem.c | memcpy_fromfs((void *) p,buf,count); |
p | 145 | drivers/char/tty_io.c | unsigned char *p = bufp; |
p | 156 | drivers/char/tty_io.c | *p++ = tty->read_q.buf[tail++]; |
p | 242 | drivers/char/tty_io.c | struct task_struct *p; |
p | 268 | drivers/char/tty_io.c | for_each_task(p) { |
p | 269 | drivers/char/tty_io.c | if (p->tty == tty->line) |
p | 270 | drivers/char/tty_io.c | p->tty = -1; |
p | 310 | drivers/char/tty_io.c | struct task_struct *p; |
p | 325 | drivers/char/tty_io.c | for_each_task(p) |
p | 326 | drivers/char/tty_io.c | if (p->session == current->session) |
p | 327 | drivers/char/tty_io.c | p->tty = -1; |
p | 1356 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1415 | drivers/char/tty_io.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 1416 | drivers/char/tty_io.c | if ((*p) && (*p)->tty == tty->line) |
p | 1417 | drivers/char/tty_io.c | (*p)->tty = -1; |
p | 1637 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1645 | drivers/char/tty_io.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 1646 | drivers/char/tty_io.c | if (!(*p)) |
p | 1648 | drivers/char/tty_io.c | if (((*p)->tty == line) || |
p | 1649 | drivers/char/tty_io.c | ((session > 0) && ((*p)->session == session))) |
p | 1650 | drivers/char/tty_io.c | send_sig(SIGKILL, *p, 1); |
p | 1653 | drivers/char/tty_io.c | filp = (*p)->filp[i]; |
p | 1656 | drivers/char/tty_io.c | send_sig(SIGKILL, *p, 1); |
p | 1685 | drivers/char/tty_io.c | char *p; |
p | 1699 | drivers/char/tty_io.c | p = bufp; |
p | 1702 | drivers/char/tty_io.c | tty->write_q.buf[head++] = *p++; |
p | 1709 | drivers/char/tty_io.c | tty->write_data_ptr = (unsigned char *) p; |
p | 1730 | drivers/char/tty_io.c | unsigned char * p; |
p | 1747 | drivers/char/tty_io.c | p = tty->write_data_ptr; |
p | 1750 | drivers/char/tty_io.c | tty->write_q.buf[head++] = *p++; |
p | 1755 | drivers/char/tty_io.c | tty->write_data_ptr = p; |
p | 119 | drivers/char/tty_ioctl.c | struct task_struct **p; |
p | 126 | drivers/char/tty_ioctl.c | for (p = &FIRST_TASK ; p <= &LAST_TASK ; p++, n++) |
p | 127 | drivers/char/tty_ioctl.c | if (*p) |
p | 129 | drivers/char/tty_ioctl.c | c = (char *)(*p); |
p | 473 | drivers/char/tty_ioctl.c | struct task_struct *p; |
p | 475 | drivers/char/tty_ioctl.c | for_each_task(p) |
p | 476 | drivers/char/tty_ioctl.c | if (p->tty == dev) |
p | 477 | drivers/char/tty_ioctl.c | p->tty = -1; |
p | 314 | drivers/char/vt.c | char *p; |
p | 323 | drivers/char/vt.c | p = func_table[i]; |
p | 324 | drivers/char/vt.c | if(!p) { |
p | 330 | drivers/char/vt.c | for ( ; *p; p++) |
p | 331 | drivers/char/vt.c | put_fs_byte(*p, q++); |
p | 342 | drivers/char/vt.c | u_char *p; |
p | 358 | drivers/char/vt.c | for (p = a->kb_string; get_fs_byte(p); p++) |
p | 376 | drivers/char/vt.c | for (p = a->kb_string, q = func_table[i]; ; p++, q++) |
p | 377 | drivers/char/vt.c | if (!(*q = get_fs_byte(p))) |
p | 719 | drivers/net/atp.c | static void read_block(short ioaddr, int length, unsigned char *p, int data_mode) |
p | 727 | drivers/net/atp.c | do *p++ = read_byte_mode0(ioaddr); while (--length > 0); |
p | 729 | drivers/net/atp.c | do *p++ = read_byte_mode2(ioaddr); while (--length > 0); |
p | 731 | drivers/net/atp.c | do *p++ = read_byte_mode4(ioaddr); while (--length > 0); |
p | 733 | drivers/net/atp.c | do *p++ = read_byte_mode6(ioaddr); while (--length > 0); |
p | 817 | drivers/net/depca.c | char *p = (char *) skb->data; |
p | 850 | drivers/net/depca.c | for (p += len; skbL > 0; p += len) { |
p | 874 | drivers/net/depca.c | memcpy((unsigned char *)(buf + PKT_HDR_LEN), (unsigned char *)p, len); |
p | 439 | drivers/net/slip.c | unsigned char *bp, *p; |
p | 456 | drivers/net/slip.c | p = icp; |
p | 458 | drivers/net/slip.c | len = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1); |
p | 475 | drivers/net/slip.c | c = *p++; |
p | 496 | drivers/net/slip.c | count=slip_esc6(p, (unsigned char *)sl->xbuff,len); |
p | 498 | drivers/net/slip.c | count=slip_esc(p, (unsigned char *)sl->xbuff,len); |
p | 645 | drivers/net/slip.c | unsigned char *p; |
p | 672 | drivers/net/slip.c | p = (unsigned char *) kmalloc(l + 4, GFP_KERNEL); |
p | 673 | drivers/net/slip.c | if (p == NULL) { |
p | 679 | drivers/net/slip.c | sl->dev->mem_start = (unsigned long) p; |
p | 682 | drivers/net/slip.c | p = (unsigned char *) kmalloc(l + 4, GFP_KERNEL); |
p | 683 | drivers/net/slip.c | if (p == NULL) { |
p | 687 | drivers/net/slip.c | sl->dev->rmem_start = (unsigned long) p; |
p | 699 | drivers/net/slip.c | p = (unsigned char *) kmalloc(l + 4, GFP_KERNEL); |
p | 700 | drivers/net/slip.c | if (p == NULL) { |
p | 705 | drivers/net/slip.c | sl->cbuff = p; |
p | 761 | drivers/net/slip.c | unsigned char *p; |
p | 781 | drivers/net/slip.c | p = buff; |
p | 784 | drivers/net/slip.c | c = *p++; |
p | 1328 | drivers/scsi/NCR5380.c | register unsigned char p = *phase, tmp; |
p | 1339 | drivers/scsi/NCR5380.c | NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(p)); |
p | 1353 | drivers/scsi/NCR5380.c | if ((tmp & PHASE_MASK) != p) { |
p | 1362 | drivers/scsi/NCR5380.c | if (!(p & SR_IO)) |
p | 1376 | drivers/scsi/NCR5380.c | if (!(p & SR_IO)) { |
p | 1377 | drivers/scsi/NCR5380.c | if (!((p & SR_MSG) && c > 1)) { |
p | 1407 | drivers/scsi/NCR5380.c | if (!(p == PHASE_MSGOUT && c > 1)) |
p | 1425 | drivers/scsi/NCR5380.c | if (!c || (*phase == p)) |
p | 1456 | drivers/scsi/NCR5380.c | register unsigned char p = *phase; |
p | 1470 | drivers/scsi/NCR5380.c | if ((tmp = (NCR5380_read(STATUS_REG) & PHASE_MASK)) != p) { |
p | 1476 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 1482 | drivers/scsi/NCR5380.c | instance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" : |
p | 1483 | drivers/scsi/NCR5380.c | "writing", c, (p & SR_IO) ? "to" : "from", (unsigned) d); |
p | 1485 | drivers/scsi/NCR5380.c | hostdata->dma_len = (p & SR_IO) ? |
p | 1490 | drivers/scsi/NCR5380.c | NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(p)); |
p | 1513 | drivers/scsi/NCR5380.c | if (p & SR_IO) |
p | 1562 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 1596 | drivers/scsi/NCR5380.c | if (*phase == p && (p & SR_IO) && residue == 0) { |
p | 1626 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 93 | drivers/scsi/aha1542.h | #define any2scsi(up, p) \ |
p | 94 | drivers/scsi/aha1542.h | (up)[0] = (((unsigned long)(p)) >> 16) ; \ |
p | 95 | drivers/scsi/aha1542.h | (up)[1] = (((unsigned long)(p)) >> 8); \ |
p | 96 | drivers/scsi/aha1542.h | (up)[2] = ((unsigned long)(p)); |
p | 100 | drivers/scsi/aha1542.h | #define xany2scsi(up, p) \ |
p | 101 | drivers/scsi/aha1542.h | (up)[0] = ((long)(p)) >> 24; \ |
p | 102 | drivers/scsi/aha1542.h | (up)[1] = ((long)(p)) >> 16; \ |
p | 103 | drivers/scsi/aha1542.h | (up)[2] = ((long)(p)) >> 8; \ |
p | 104 | drivers/scsi/aha1542.h | (up)[3] = ((long)(p)); |
p | 89 | drivers/scsi/aha1740.h | #define any2scsi(up, p) \ |
p | 90 | drivers/scsi/aha1740.h | (up)[0] = (((unsigned long)(p)) >> 16) ; \ |
p | 91 | drivers/scsi/aha1740.h | (up)[1] = (((unsigned long)(p)) >> 8); \ |
p | 92 | drivers/scsi/aha1740.h | (up)[2] = ((unsigned long)(p)); |
p | 96 | drivers/scsi/aha1740.h | #define xany2scsi(up, p) \ |
p | 97 | drivers/scsi/aha1740.h | (up)[0] = ((long)(p)) >> 24; \ |
p | 98 | drivers/scsi/aha1740.h | (up)[1] = ((long)(p)) >> 16; \ |
p | 99 | drivers/scsi/aha1740.h | (up)[2] = ((long)(p)) >> 8; \ |
p | 100 | drivers/scsi/aha1740.h | (up)[3] = ((long)(p)); |
p | 455 | drivers/scsi/scsi.h | struct task_struct * p; |
p | 487 | drivers/scsi/scsi.h | if ((p = req->waiting) != NULL) { |
p | 489 | drivers/scsi/scsi.h | p->state = TASK_RUNNING; |
p | 490 | drivers/scsi/scsi.h | if (p->counter > current->counter) |
p | 140 | drivers/scsi/scsi_debug.c | struct partition * p; |
p | 239 | drivers/scsi/scsi_debug.c | p = (struct partition* ) (buff + 0x1be); |
p | 242 | drivers/scsi/scsi_debug.c | p->start_sect = starts[npart]; |
p | 243 | drivers/scsi/scsi_debug.c | p->nr_sects = starts[npart+1] - starts [npart]; |
p | 244 | drivers/scsi/scsi_debug.c | p->sys_ind = 0x81; /* Linux partition */ |
p | 245 | drivers/scsi/scsi_debug.c | p++; |
p | 76 | drivers/scsi/scsi_ioctl.c | struct task_struct * p; |
p | 81 | drivers/scsi/scsi_ioctl.c | if ((p = req->waiting) != NULL) { |
p | 83 | drivers/scsi/scsi_ioctl.c | p->state = TASK_RUNNING; |
p | 84 | drivers/scsi/scsi_ioctl.c | if (p->counter > current->counter) |
p | 651 | drivers/scsi/sd.c | struct task_struct * p; |
p | 656 | drivers/scsi/sd.c | if ((p = req->waiting) != NULL) { |
p | 658 | drivers/scsi/sd.c | p->state = TASK_RUNNING; |
p | 659 | drivers/scsi/sd.c | if (p->counter > current->counter) |
p | 634 | drivers/scsi/sr.c | struct task_struct * p; |
p | 639 | drivers/scsi/sr.c | if ((p = req->waiting) != NULL) { |
p | 641 | drivers/scsi/sr.c | p->state = TASK_RUNNING; |
p | 642 | drivers/scsi/sr.c | if (p->counter > current->counter) |
p | 24 | drivers/scsi/sr_ioctl.c | struct task_struct * p; |
p | 29 | drivers/scsi/sr_ioctl.c | if ((p = req->waiting) != NULL) { |
p | 31 | drivers/scsi/sr_ioctl.c | p->state = TASK_RUNNING; |
p | 32 | drivers/scsi/sr_ioctl.c | if (p->counter > current->counter) |
p | 827 | drivers/scsi/ultrastor.c | unsigned char p = inb(port0 + i); |
p | 828 | drivers/scsi/ultrastor.c | out[28 + i * 3] = "0123456789abcdef"[p >> 4]; |
p | 829 | drivers/scsi/ultrastor.c | out[29 + i * 3] = "0123456789abcdef"[p & 15]; |
p | 107 | drivers/scsi/wd7000.h | #define any2scsi(up, p) \ |
p | 108 | drivers/scsi/wd7000.h | (up)[0] = (((long)(p)) >> 16); \ |
p | 109 | drivers/scsi/wd7000.h | (up)[1] = ((long)(p)) >> 8; \ |
p | 110 | drivers/scsi/wd7000.h | (up)[2] = ((long)(p)); |
p | 114 | drivers/scsi/wd7000.h | #define xany2scsi(up, p) \ |
p | 115 | drivers/scsi/wd7000.h | (up)[0] = ((long)(p)) >> 24; \ |
p | 116 | drivers/scsi/wd7000.h | (up)[1] = ((long)(p)) >> 16; \ |
p | 117 | drivers/scsi/wd7000.h | (up)[2] = ((long)(p)) >> 8; \ |
p | 118 | drivers/scsi/wd7000.h | (up)[3] = ((long)(p)); |
p | 127 | drivers/sound/audio.c | int c, p, l; |
p | 133 | drivers/sound/audio.c | p = 0; |
p | 169 | drivers/sound/audio.c | COPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l); |
p | 173 | drivers/sound/audio.c | wr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l); |
p | 188 | drivers/sound/audio.c | p += l; |
p | 207 | drivers/sound/audio.c | int c, p, l; |
p | 213 | drivers/sound/audio.c | p = 0; |
p | 248 | drivers/sound/audio.c | COPY_TO_USER (buf, p, dmabuf, l); |
p | 252 | drivers/sound/audio.c | p += l; |
p | 106 | drivers/sound/dmabuf.c | unsigned i, p, n; |
p | 156 | drivers/sound/dmabuf.c | p = 0; |
p | 158 | drivers/sound/dmabuf.c | while ((p + bsz) <= sound_buffsizes[dev]) |
p | 160 | drivers/sound/dmabuf.c | dev_buf[dev][n] = snd_raw_buf[dev][i] + p; |
p | 161 | drivers/sound/dmabuf.c | dev_buf_phys[dev][n] = snd_raw_buf_phys[dev][i] + p; |
p | 162 | drivers/sound/dmabuf.c | p += bsz; |
p | 393 | drivers/sound/dmabuf.c | int p = dev_counts[dev][dev_qhead[dev]] + c; |
p | 395 | drivers/sound/dmabuf.c | if (p >= dev_buffsize[dev]) |
p | 402 | drivers/sound/dmabuf.c | dev_counts[dev][dev_qhead[dev]] = p; |
p | 262 | drivers/sound/pas2_mixer.c | struct sb_mixer_params p; |
p | 267 | drivers/sound/pas2_mixer.c | IOCTL_FROM_USER ((char *) &p, (char *) user_p, 0, sizeof (p)); |
p | 269 | drivers/sound/pas2_mixer.c | if (p.record_source != SRC_MIC |
p | 270 | drivers/sound/pas2_mixer.c | && p.record_source != SRC_CD |
p | 271 | drivers/sound/pas2_mixer.c | && p.record_source != SRC_LINE) |
p | 283 | drivers/sound/pas2_mixer.c | if (!p.dsp_stereo) |
p | 289 | drivers/sound/pas2_mixer.c | switch (p.record_source) |
p | 79 | drivers/sound/sequencer.c | int c = count, p = 0; |
p | 96 | drivers/sound/sequencer.c | COPY_TO_USER (buf, p, &iqueue[iqhead * IEV_SZ], IEV_SZ); |
p | 97 | drivers/sound/sequencer.c | p += 4; |
p | 159 | drivers/sound/sequencer.c | int p = 0, c, ev_size; |
p | 177 | drivers/sound/sequencer.c | COPY_FROM_USER (event, buf, p, 4); |
p | 191 | drivers/sound/sequencer.c | err = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0); |
p | 210 | drivers/sound/sequencer.c | COPY_FROM_USER (&event[4], buf, p + 4, 4); |
p | 253 | drivers/sound/sequencer.c | p += ev_size; |
p | 449 | fs/binfmt_coff.c | bprm->p += change_ldt (0, bprm->page); |
p | 450 | fs/binfmt_coff.c | bprm->p -= MAX_ARG_PAGES*PAGE_SIZE; |
p | 451 | fs/binfmt_coff.c | bprm->p = (unsigned long) create_tables ((char *) bprm->p, |
p | 471 | fs/binfmt_coff.c | current->start_stack = bprm->p; |
p | 49 | fs/binfmt_elf.c | unsigned long * create_elf_tables(char * p,int argc,int envc,struct elfhdr * exec, unsigned int load_addr, int ibcs) |
p | 58 | fs/binfmt_elf.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
p | 68 | fs/binfmt_elf.c | sp = (unsigned long *) (0xfffffffc & (unsigned long) p); |
p | 97 | fs/binfmt_elf.c | current->arg_start = (unsigned long) p; |
p | 99 | fs/binfmt_elf.c | put_fs_long((unsigned long) p,argv++); |
p | 100 | fs/binfmt_elf.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 103 | fs/binfmt_elf.c | current->arg_end = current->env_start = (unsigned long) p; |
p | 105 | fs/binfmt_elf.c | put_fs_long((unsigned long) p,envp++); |
p | 106 | fs/binfmt_elf.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 109 | fs/binfmt_elf.c | current->env_end = (unsigned long) p; |
p | 403 | fs/binfmt_elf.c | bprm->p = copy_strings(1,&passed_p,bprm->page,bprm->p,2); |
p | 407 | fs/binfmt_elf.c | if (!bprm->p) { |
p | 428 | fs/binfmt_elf.c | bprm->p += change_ldt(0, bprm->page); |
p | 429 | fs/binfmt_elf.c | current->start_stack = bprm->p; |
p | 504 | fs/binfmt_elf.c | current->start_stack = p = elf_stack - 4; |
p | 506 | fs/binfmt_elf.c | bprm->p -= MAX_ARG_PAGES*PAGE_SIZE; |
p | 507 | fs/binfmt_elf.c | bprm->p = (unsigned long) |
p | 508 | fs/binfmt_elf.c | create_elf_tables((char *)bprm->p, |
p | 520 | fs/binfmt_elf.c | current->start_stack = bprm->p; |
p | 539 | fs/binfmt_elf.c | regs->esp = bprm->p; /* stack pointer */ |
p | 27 | fs/block_dev.c | register char * p; |
p | 61 | fs/block_dev.c | p = offset + bh->b_data; |
p | 66 | fs/block_dev.c | memcpy_fromfs(p,buf,chars); |
p | 67 | fs/block_dev.c | p += chars; |
p | 745 | fs/buffer.c | int * p; |
p | 752 | fs/buffer.c | p = b; |
p | 754 | fs/buffer.c | block = *(p++); |
p | 761 | fs/buffer.c | p = b; |
p | 769 | fs/buffer.c | bh->b_blocknr = *(p++); |
p | 910 | fs/buffer.c | struct buffer_head * tmp, * p; |
p | 925 | fs/buffer.c | p = tmp; |
p | 928 | fs/buffer.c | if (p == *bhp) |
p | 929 | fs/buffer.c | *bhp = p->b_prev_free; |
p | 930 | fs/buffer.c | remove_from_queues(p); |
p | 931 | fs/buffer.c | put_unused_buffer_head(p); |
p | 268 | fs/exec.c | unsigned long * create_tables(char * p,int argc,int envc,int ibcs) |
p | 277 | fs/exec.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
p | 287 | fs/exec.c | sp = (unsigned long *) (0xfffffffc & (unsigned long) p); |
p | 297 | fs/exec.c | current->arg_start = (unsigned long) p; |
p | 299 | fs/exec.c | put_fs_long((unsigned long) p,argv++); |
p | 300 | fs/exec.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 303 | fs/exec.c | current->arg_end = current->env_start = (unsigned long) p; |
p | 305 | fs/exec.c | put_fs_long((unsigned long) p,envp++); |
p | 306 | fs/exec.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 309 | fs/exec.c | current->env_end = (unsigned long) p; |
p | 346 | fs/exec.c | unsigned long p, int from_kmem) |
p | 352 | fs/exec.c | if (!p) |
p | 369 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
p | 374 | fs/exec.c | --p; --tmp; --len; |
p | 376 | fs/exec.c | offset = p % PAGE_SIZE; |
p | 379 | fs/exec.c | if (!(pag = (char *) page[p/PAGE_SIZE]) && |
p | 380 | fs/exec.c | !(pag = (char *) page[p/PAGE_SIZE] = |
p | 392 | fs/exec.c | return p; |
p | 550 | fs/exec.c | bprm.p = PAGE_SIZE*MAX_ARG_PAGES-4; |
p | 644 | fs/exec.c | bprm.p = copy_strings(bprm.envc, envp, bprm.page, bprm.p, 0); |
p | 645 | fs/exec.c | bprm.p = copy_strings(--bprm.argc, argv+1, bprm.page, bprm.p, 0); |
p | 655 | fs/exec.c | bprm.p = copy_strings(1, &bprm.filename, bprm.page, bprm.p, 2); |
p | 658 | fs/exec.c | bprm.p = copy_strings(1, &i_arg, bprm.page, bprm.p, 2); |
p | 661 | fs/exec.c | bprm.p = copy_strings(1, &i_name, bprm.page, bprm.p, 2); |
p | 663 | fs/exec.c | if (!bprm.p) { |
p | 678 | fs/exec.c | bprm.p = copy_strings(bprm.envc,envp,bprm.page,bprm.p,0); |
p | 679 | fs/exec.c | bprm.p = copy_strings(bprm.argc,argv,bprm.page,bprm.p,0); |
p | 680 | fs/exec.c | if (!bprm.p) { |
p | 767 | fs/exec.c | unsigned long p = bprm->p; |
p | 847 | fs/exec.c | p += change_ldt(ex.a_text,bprm->page); |
p | 848 | fs/exec.c | p -= MAX_ARG_PAGES*PAGE_SIZE; |
p | 849 | fs/exec.c | p = (unsigned long) create_tables((char *)p,bprm->argc,bprm->envc,0); |
p | 850 | fs/exec.c | current->start_stack = p; |
p | 852 | fs/exec.c | regs->esp = p; /* stack pointer */ |
p | 201 | fs/ext/file.c | char * p; |
p | 240 | fs/ext/file.c | p = (pos % BLOCK_SIZE) + bh->b_data; |
p | 247 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
p | 224 | fs/ext/inode.c | unsigned long * p; |
p | 227 | fs/ext/inode.c | p = inode->u.ext_i.i_data + nr; |
p | 229 | fs/ext/inode.c | tmp = *p; |
p | 232 | fs/ext/inode.c | if (tmp == *p) |
p | 243 | fs/ext/inode.c | if (*p) { |
p | 248 | fs/ext/inode.c | *p = tmp; |
p | 258 | fs/ext/inode.c | unsigned long * p; |
p | 271 | fs/ext/inode.c | p = nr + (unsigned long *) bh->b_data; |
p | 273 | fs/ext/inode.c | tmp = *p; |
p | 276 | fs/ext/inode.c | if (tmp == *p) { |
p | 293 | fs/ext/inode.c | if (*p) { |
p | 298 | fs/ext/inode.c | *p = tmp; |
p | 35 | fs/ext/truncate.c | unsigned long * p; |
p | 42 | fs/ext/truncate.c | p = inode->u.ext_i.i_data+i; |
p | 43 | fs/ext/truncate.c | if (!(tmp = *p)) |
p | 50 | fs/ext/truncate.c | if ((bh && bh->b_count != 1) || tmp != *p) { |
p | 55 | fs/ext/truncate.c | *p = 0; |
p | 63 | fs/ext/truncate.c | static int trunc_indirect(struct inode * inode, int offset, unsigned long * p) |
p | 72 | fs/ext/truncate.c | tmp = *p; |
p | 76 | fs/ext/truncate.c | if (tmp != *p) { |
p | 81 | fs/ext/truncate.c | *p = 0; |
p | 117 | fs/ext/truncate.c | tmp = *p; |
p | 118 | fs/ext/truncate.c | *p = 0; |
p | 126 | fs/ext/truncate.c | static int trunc_dindirect(struct inode * inode, int offset, unsigned long * p) |
p | 134 | fs/ext/truncate.c | tmp = *p; |
p | 138 | fs/ext/truncate.c | if (tmp != *p) { |
p | 143 | fs/ext/truncate.c | *p = 0; |
p | 167 | fs/ext/truncate.c | tmp = *p; |
p | 168 | fs/ext/truncate.c | *p = 0; |
p | 180 | fs/ext/truncate.c | unsigned long * tind, * p; |
p | 184 | fs/ext/truncate.c | p = inode->u.ext_i.i_data+11; |
p | 185 | fs/ext/truncate.c | if (!(tmp = *p)) |
p | 188 | fs/ext/truncate.c | if (tmp != *p) { |
p | 193 | fs/ext/truncate.c | *p = 0; |
p | 214 | fs/ext/truncate.c | tmp = *p; |
p | 215 | fs/ext/truncate.c | *p = 0; |
p | 74 | fs/ext2/balloc.c | unsigned long * p = ((unsigned long *) addr) + (offset >> 5); |
p | 87 | fs/ext2/balloc.c | : "r" (~(*p >> bit))); |
p | 91 | fs/ext2/balloc.c | p++; |
p | 96 | fs/ext2/balloc.c | res = find_first_zero_bit (p, size - 32 * (p - addr)); |
p | 339 | fs/ext2/balloc.c | char * p, * r; |
p | 423 | fs/ext2/balloc.c | p = ((char *) bh->b_data) + (j >> 3); |
p | 424 | fs/ext2/balloc.c | r = find_first_zero_byte (p, |
p | 88 | fs/ext2/dcache.c | struct dir_cache_entry * p; |
p | 90 | fs/ext2/dcache.c | for (p = queue_head[queue]; p != NULL && (p->dev != dev || |
p | 91 | fs/ext2/dcache.c | p->dir != dir || p->len != len || |
p | 92 | fs/ext2/dcache.c | strncmp (name, p->name, p->len) != 0); |
p | 93 | fs/ext2/dcache.c | p = p->queue_next) |
p | 95 | fs/ext2/dcache.c | return p; |
p | 104 | fs/ext2/dcache.c | struct dir_cache_entry * p; |
p | 107 | fs/ext2/dcache.c | for (p = first; p != NULL; p = p->next) |
p | 109 | fs/ext2/dcache.c | p->dev, p->dir, p->name); |
p | 116 | fs/ext2/dcache.c | static void add_to_cache (struct dir_cache_entry * p) |
p | 118 | fs/ext2/dcache.c | p->prev = NULL; |
p | 119 | fs/ext2/dcache.c | p->next = first; |
p | 121 | fs/ext2/dcache.c | first->prev = p; |
p | 123 | fs/ext2/dcache.c | last = p; |
p | 124 | fs/ext2/dcache.c | first = p; |
p | 130 | fs/ext2/dcache.c | static void add_to_queue (int queue, struct dir_cache_entry * p) |
p | 132 | fs/ext2/dcache.c | p->queue_prev = NULL; |
p | 133 | fs/ext2/dcache.c | p->queue_next = queue_head[queue]; |
p | 135 | fs/ext2/dcache.c | queue_head[queue]->queue_prev = p; |
p | 137 | fs/ext2/dcache.c | queue_tail[queue] = p; |
p | 138 | fs/ext2/dcache.c | queue_head[queue] = p; |
p | 144 | fs/ext2/dcache.c | static void remove_from_cache (struct dir_cache_entry * p) |
p | 146 | fs/ext2/dcache.c | if (p->prev) |
p | 147 | fs/ext2/dcache.c | p->prev->next = p->next; |
p | 149 | fs/ext2/dcache.c | first = p->next; |
p | 150 | fs/ext2/dcache.c | if (p->next) |
p | 151 | fs/ext2/dcache.c | p->next->prev = p->prev; |
p | 153 | fs/ext2/dcache.c | last = p->prev; |
p | 154 | fs/ext2/dcache.c | p->prev = NULL; |
p | 155 | fs/ext2/dcache.c | p->next = NULL; |
p | 161 | fs/ext2/dcache.c | static void remove_from_queue (int queue, struct dir_cache_entry * p) |
p | 163 | fs/ext2/dcache.c | if (p->queue_prev) |
p | 164 | fs/ext2/dcache.c | p->queue_prev->queue_next = p->queue_next; |
p | 166 | fs/ext2/dcache.c | queue_head[queue] = p->queue_next; |
p | 167 | fs/ext2/dcache.c | if (p->queue_next) |
p | 168 | fs/ext2/dcache.c | p->queue_next->queue_prev = p->queue_prev; |
p | 170 | fs/ext2/dcache.c | queue_tail[queue] = p->queue_prev; |
p | 171 | fs/ext2/dcache.c | p->queue_prev = NULL; |
p | 172 | fs/ext2/dcache.c | p->queue_next = NULL; |
p | 181 | fs/ext2/dcache.c | struct dir_cache_entry * p; |
p | 186 | fs/ext2/dcache.c | for (p = first; p != NULL; p = p2) { |
p | 187 | fs/ext2/dcache.c | p2 = p->next; |
p | 188 | fs/ext2/dcache.c | if (p->dev == dev) { |
p | 189 | fs/ext2/dcache.c | remove_from_cache (p); |
p | 190 | fs/ext2/dcache.c | remove_from_queue (hash (p->dev, p->dir), p); |
p | 191 | fs/ext2/dcache.c | p->next = first_free; |
p | 192 | fs/ext2/dcache.c | first_free = p; |
p | 208 | fs/ext2/dcache.c | struct dir_cache_entry * p; |
p | 220 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, our_name, len))) { |
p | 221 | fs/ext2/dcache.c | if (p != first) { |
p | 222 | fs/ext2/dcache.c | remove_from_cache (p); |
p | 223 | fs/ext2/dcache.c | add_to_cache (p); |
p | 225 | fs/ext2/dcache.c | if (p != queue_head[queue]) { |
p | 226 | fs/ext2/dcache.c | remove_from_queue (queue, p); |
p | 227 | fs/ext2/dcache.c | add_to_queue (queue, p); |
p | 232 | fs/ext2/dcache.c | our_name, p->ino, hits, misses); |
p | 235 | fs/ext2/dcache.c | return p->ino; |
p | 256 | fs/ext2/dcache.c | struct dir_cache_entry * p; |
p | 268 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, name, len))) { |
p | 269 | fs/ext2/dcache.c | p->dir = dir; |
p | 270 | fs/ext2/dcache.c | p->ino = ino; |
p | 271 | fs/ext2/dcache.c | if (p != first) { |
p | 272 | fs/ext2/dcache.c | remove_from_cache (p); |
p | 273 | fs/ext2/dcache.c | add_to_cache (p); |
p | 275 | fs/ext2/dcache.c | if (p != queue_head[queue]) { |
p | 276 | fs/ext2/dcache.c | remove_from_queue (queue, p); |
p | 277 | fs/ext2/dcache.c | add_to_queue (queue, p); |
p | 281 | fs/ext2/dcache.c | p = first_free; |
p | 282 | fs/ext2/dcache.c | first_free = p->next; |
p | 287 | fs/ext2/dcache.c | p = last; |
p | 288 | fs/ext2/dcache.c | last = p->prev; |
p | 291 | fs/ext2/dcache.c | remove_from_queue (hash (p->dev, p->dir), p); |
p | 294 | fs/ext2/dcache.c | p->dev = dev; |
p | 295 | fs/ext2/dcache.c | p->dir = dir; |
p | 296 | fs/ext2/dcache.c | p->ino = ino; |
p | 297 | fs/ext2/dcache.c | strncpy (p->name, name, len); |
p | 298 | fs/ext2/dcache.c | p->len = len; |
p | 299 | fs/ext2/dcache.c | p->name[len] = '\0'; |
p | 300 | fs/ext2/dcache.c | add_to_cache (p); |
p | 301 | fs/ext2/dcache.c | add_to_queue (queue, p); |
p | 316 | fs/ext2/dcache.c | struct dir_cache_entry * p; |
p | 327 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, name, len))) { |
p | 328 | fs/ext2/dcache.c | remove_from_cache (p); |
p | 329 | fs/ext2/dcache.c | remove_from_queue (queue, p); |
p | 330 | fs/ext2/dcache.c | p->next = first_free; |
p | 331 | fs/ext2/dcache.c | first_free = p; |
p | 224 | fs/ext2/file.c | char * p; |
p | 270 | fs/ext2/file.c | p = (pos % sb->s_blocksize) + bh->b_data; |
p | 277 | fs/ext2/file.c | memcpy_fromfs (p, buf, c); |
p | 193 | fs/ext2/inode.c | unsigned long * p; |
p | 197 | fs/ext2/inode.c | p = inode->u.ext2_i.i_data + nr; |
p | 199 | fs/ext2/inode.c | tmp = *p; |
p | 202 | fs/ext2/inode.c | if (tmp == *p) |
p | 237 | fs/ext2/inode.c | if (*p) { |
p | 242 | fs/ext2/inode.c | *p = tmp; |
p | 260 | fs/ext2/inode.c | unsigned long * p; |
p | 274 | fs/ext2/inode.c | p = (unsigned long *) bh->b_data + nr; |
p | 276 | fs/ext2/inode.c | tmp = *p; |
p | 279 | fs/ext2/inode.c | if (tmp == *p) { |
p | 311 | fs/ext2/inode.c | if (*p) { |
p | 316 | fs/ext2/inode.c | *p = tmp; |
p | 56 | fs/ext2/truncate.c | unsigned long * p; |
p | 68 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + i; |
p | 69 | fs/ext2/truncate.c | tmp = *p; |
p | 82 | fs/ext2/truncate.c | if ((bh && bh->b_count != 1) || tmp != *p) { |
p | 87 | fs/ext2/truncate.c | *p = 0; |
p | 113 | fs/ext2/truncate.c | static int trunc_indirect (struct inode * inode, int offset, unsigned long * p) |
p | 127 | fs/ext2/truncate.c | tmp = *p; |
p | 131 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 136 | fs/ext2/truncate.c | *p = 0; |
p | 196 | fs/ext2/truncate.c | tmp = *p; |
p | 197 | fs/ext2/truncate.c | *p = 0; |
p | 211 | fs/ext2/truncate.c | unsigned long * p) |
p | 222 | fs/ext2/truncate.c | tmp = *p; |
p | 226 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 231 | fs/ext2/truncate.c | *p = 0; |
p | 256 | fs/ext2/truncate.c | tmp = *p; |
p | 257 | fs/ext2/truncate.c | *p = 0; |
p | 274 | fs/ext2/truncate.c | unsigned long * tind, * p; |
p | 283 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + EXT2_TIND_BLOCK; |
p | 284 | fs/ext2/truncate.c | if (!(tmp = *p)) |
p | 287 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 292 | fs/ext2/truncate.c | *p = 0; |
p | 315 | fs/ext2/truncate.c | tmp = *p; |
p | 316 | fs/ext2/truncate.c | *p = 0; |
p | 252 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len); |
p | 530 | fs/hpfs/hpfs_fs.c | unsigned char *p = addr; |
p | 531 | fs/hpfs/hpfs_fs.c | return p[0] == 0 && memcmp(p, p + 1, len - 1) == 0; |
p | 541 | fs/hpfs/hpfs_fs.c | char *p, *rhs; |
p | 552 | fs/hpfs/hpfs_fs.c | for (p = strtok(opts, ","); p != 0; p = strtok(0, ",")) { |
p | 553 | fs/hpfs/hpfs_fs.c | if ((rhs = strchr(p, '=')) != 0) |
p | 555 | fs/hpfs/hpfs_fs.c | if (!strcmp(p, "uid")) { |
p | 562 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "gid")) { |
p | 569 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "umask")) { |
p | 576 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "case")) { |
p | 584 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "conv")) { |
p | 943 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len) |
p | 951 | fs/hpfs/hpfs_fs.c | c = *p++; |
p | 953 | fs/hpfs/hpfs_fs.c | if (c == '\r' && len && *p == '\n') |
p | 283 | fs/isofs/rock.c | { int p; |
p | 284 | fs/isofs/rock.c | for(p=0;p<rr->u.ER.len_id;p++) printk("%c",rr->u.ER.data[p]); |
p | 14 | fs/isofs/util.c | isonum_711 (char * p) |
p | 16 | fs/isofs/util.c | return (*p & 0xff); |
p | 20 | fs/isofs/util.c | isonum_712 (char * p) |
p | 24 | fs/isofs/util.c | val = *p; |
p | 31 | fs/isofs/util.c | isonum_721 (char * p) |
p | 33 | fs/isofs/util.c | return ((p[0] & 0xff) | ((p[1] & 0xff) << 8)); |
p | 37 | fs/isofs/util.c | isonum_722 (char * p) |
p | 39 | fs/isofs/util.c | return (((p[0] & 0xff) << 8) | (p[1] & 0xff)); |
p | 43 | fs/isofs/util.c | isonum_723 (char * p) |
p | 46 | fs/isofs/util.c | if (p[0] != p[3] || p[1] != p[2]) { |
p | 51 | fs/isofs/util.c | return (isonum_721 (p)); |
p | 55 | fs/isofs/util.c | isonum_731 (char * p) |
p | 57 | fs/isofs/util.c | return ((p[0] & 0xff) |
p | 58 | fs/isofs/util.c | | ((p[1] & 0xff) << 8) |
p | 59 | fs/isofs/util.c | | ((p[2] & 0xff) << 16) |
p | 60 | fs/isofs/util.c | | ((p[3] & 0xff) << 24)); |
p | 64 | fs/isofs/util.c | isonum_732 (char * p) |
p | 66 | fs/isofs/util.c | return (((p[0] & 0xff) << 24) |
p | 67 | fs/isofs/util.c | | ((p[1] & 0xff) << 16) |
p | 68 | fs/isofs/util.c | | ((p[2] & 0xff) << 8) |
p | 69 | fs/isofs/util.c | | (p[3] & 0xff)); |
p | 73 | fs/isofs/util.c | isonum_733 (char * p) |
p | 79 | fs/isofs/util.c | if (p[i] != p[7-i]) { |
p | 85 | fs/isofs/util.c | return (isonum_731 (p)); |
p | 92 | fs/isofs/util.c | int iso_date(char * p, int flag) |
p | 97 | fs/isofs/util.c | year = p[0] - 70; |
p | 98 | fs/isofs/util.c | month = p[1]; |
p | 99 | fs/isofs/util.c | day = p[2]; |
p | 100 | fs/isofs/util.c | hour = p[3]; |
p | 101 | fs/isofs/util.c | minute = p[4]; |
p | 102 | fs/isofs/util.c | second = p[5]; |
p | 103 | fs/isofs/util.c | if (flag == 0) tz = p[6]; /* High sierra has no time zone */ |
p | 193 | fs/minix/file.c | char * p; |
p | 232 | fs/minix/file.c | p = (pos % BLOCK_SIZE) + bh->b_data; |
p | 239 | fs/minix/file.c | memcpy_fromfs(p,buf,c); |
p | 277 | fs/minix/inode.c | unsigned short *p; |
p | 280 | fs/minix/inode.c | p = inode->u.minix_i.i_data + nr; |
p | 282 | fs/minix/inode.c | tmp = *p; |
p | 285 | fs/minix/inode.c | if (tmp == *p) |
p | 296 | fs/minix/inode.c | if (*p) { |
p | 301 | fs/minix/inode.c | *p = tmp; |
p | 311 | fs/minix/inode.c | unsigned short *p; |
p | 324 | fs/minix/inode.c | p = nr + (unsigned short *) bh->b_data; |
p | 326 | fs/minix/inode.c | tmp = *p; |
p | 329 | fs/minix/inode.c | if (tmp == *p) { |
p | 346 | fs/minix/inode.c | if (*p) { |
p | 351 | fs/minix/inode.c | *p = tmp; |
p | 28 | fs/minix/truncate.c | unsigned short * p; |
p | 36 | fs/minix/truncate.c | p = i + inode->u.minix_i.i_data; |
p | 37 | fs/minix/truncate.c | if (!(tmp = *p)) |
p | 44 | fs/minix/truncate.c | if ((bh && bh->b_count != 1) || tmp != *p) { |
p | 49 | fs/minix/truncate.c | *p = 0; |
p | 57 | fs/minix/truncate.c | static int trunc_indirect(struct inode * inode, int offset, unsigned short * p) |
p | 66 | fs/minix/truncate.c | tmp = *p; |
p | 70 | fs/minix/truncate.c | if (tmp != *p) { |
p | 75 | fs/minix/truncate.c | *p = 0; |
p | 111 | fs/minix/truncate.c | tmp = *p; |
p | 112 | fs/minix/truncate.c | *p = 0; |
p | 123 | fs/minix/truncate.c | unsigned short * dind, * p; |
p | 127 | fs/minix/truncate.c | p = 8 + inode->u.minix_i.i_data; |
p | 128 | fs/minix/truncate.c | if (!(tmp = *p)) |
p | 131 | fs/minix/truncate.c | if (tmp != *p) { |
p | 136 | fs/minix/truncate.c | *p = 0; |
p | 157 | fs/minix/truncate.c | tmp = *p; |
p | 158 | fs/minix/truncate.c | *p = 0; |
p | 280 | fs/namei.c | struct task_struct ** p; |
p | 352 | fs/namei.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 354 | fs/namei.c | if (!*p) |
p | 356 | fs/namei.c | if (inode == (*p)->executable) { |
p | 360 | fs/namei.c | for(mpnt = (*p)->mmap; mpnt; mpnt = mpnt->vm_next) { |
p | 44 | fs/nfs/proc.c | static int *nfs_rpc_header(int *p, int procedure, int ruid); |
p | 45 | fs/nfs/proc.c | static int *nfs_rpc_verify(int *p); |
p | 57 | fs/nfs/proc.c | static inline void nfs_rpc_free(int *p) |
p | 59 | fs/nfs/proc.c | free_page((long) p); |
p | 67 | fs/nfs/proc.c | static inline int *xdr_encode_fhandle(int *p, struct nfs_fh *fhandle) |
p | 69 | fs/nfs/proc.c | *((struct nfs_fh *) p) = *fhandle; |
p | 70 | fs/nfs/proc.c | p += (sizeof (*fhandle) + 3) >> 2; |
p | 71 | fs/nfs/proc.c | return p; |
p | 74 | fs/nfs/proc.c | static inline int *xdr_decode_fhandle(int *p, struct nfs_fh *fhandle) |
p | 76 | fs/nfs/proc.c | *fhandle = *((struct nfs_fh *) p); |
p | 77 | fs/nfs/proc.c | p += (sizeof (*fhandle) + 3) >> 2; |
p | 78 | fs/nfs/proc.c | return p; |
p | 81 | fs/nfs/proc.c | static inline int *xdr_encode_string(int *p, const char *string) |
p | 87 | fs/nfs/proc.c | *p++ = htonl(len); |
p | 88 | fs/nfs/proc.c | memcpy((char *) p, string, len); |
p | 89 | fs/nfs/proc.c | memset(((char *) p) + len, '\0', (quadlen << 2) - len); |
p | 90 | fs/nfs/proc.c | p += quadlen; |
p | 91 | fs/nfs/proc.c | return p; |
p | 94 | fs/nfs/proc.c | static inline int *xdr_decode_string(int *p, char *string, int maxlen) |
p | 98 | fs/nfs/proc.c | len = ntohl(*p++); |
p | 101 | fs/nfs/proc.c | memcpy(string, (char *) p, len); |
p | 103 | fs/nfs/proc.c | p += (len + 3) >> 2; |
p | 104 | fs/nfs/proc.c | return p; |
p | 107 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, char *data, int len) |
p | 112 | fs/nfs/proc.c | *p++ = htonl(len); |
p | 113 | fs/nfs/proc.c | memcpy((char *) p, data, len); |
p | 114 | fs/nfs/proc.c | memset(((char *) p) + len, '\0', (quadlen << 2) - len); |
p | 115 | fs/nfs/proc.c | p += quadlen; |
p | 116 | fs/nfs/proc.c | return p; |
p | 119 | fs/nfs/proc.c | static inline int *xdr_decode_data(int *p, char *data, int *lenp, int maxlen) |
p | 123 | fs/nfs/proc.c | len = *lenp = ntohl(*p++); |
p | 126 | fs/nfs/proc.c | memcpy(data, (char *) p, len); |
p | 127 | fs/nfs/proc.c | p += (len + 3) >> 2; |
p | 128 | fs/nfs/proc.c | return p; |
p | 131 | fs/nfs/proc.c | static int *xdr_decode_fattr(int *p, struct nfs_fattr *fattr) |
p | 133 | fs/nfs/proc.c | fattr->type = (enum nfs_ftype) ntohl(*p++); |
p | 134 | fs/nfs/proc.c | fattr->mode = ntohl(*p++); |
p | 135 | fs/nfs/proc.c | fattr->nlink = ntohl(*p++); |
p | 136 | fs/nfs/proc.c | fattr->uid = ntohl(*p++); |
p | 137 | fs/nfs/proc.c | fattr->gid = ntohl(*p++); |
p | 138 | fs/nfs/proc.c | fattr->size = ntohl(*p++); |
p | 139 | fs/nfs/proc.c | fattr->blocksize = ntohl(*p++); |
p | 140 | fs/nfs/proc.c | fattr->rdev = ntohl(*p++); |
p | 141 | fs/nfs/proc.c | fattr->blocks = ntohl(*p++); |
p | 142 | fs/nfs/proc.c | fattr->fsid = ntohl(*p++); |
p | 143 | fs/nfs/proc.c | fattr->fileid = ntohl(*p++); |
p | 144 | fs/nfs/proc.c | fattr->atime.seconds = ntohl(*p++); |
p | 145 | fs/nfs/proc.c | fattr->atime.useconds = ntohl(*p++); |
p | 146 | fs/nfs/proc.c | fattr->mtime.seconds = ntohl(*p++); |
p | 147 | fs/nfs/proc.c | fattr->mtime.useconds = ntohl(*p++); |
p | 148 | fs/nfs/proc.c | fattr->ctime.seconds = ntohl(*p++); |
p | 149 | fs/nfs/proc.c | fattr->ctime.useconds = ntohl(*p++); |
p | 150 | fs/nfs/proc.c | return p; |
p | 153 | fs/nfs/proc.c | static int *xdr_encode_sattr(int *p, struct nfs_sattr *sattr) |
p | 155 | fs/nfs/proc.c | *p++ = htonl(sattr->mode); |
p | 156 | fs/nfs/proc.c | *p++ = htonl(sattr->uid); |
p | 157 | fs/nfs/proc.c | *p++ = htonl(sattr->gid); |
p | 158 | fs/nfs/proc.c | *p++ = htonl(sattr->size); |
p | 159 | fs/nfs/proc.c | *p++ = htonl(sattr->atime.seconds); |
p | 160 | fs/nfs/proc.c | *p++ = htonl(sattr->atime.useconds); |
p | 161 | fs/nfs/proc.c | *p++ = htonl(sattr->mtime.seconds); |
p | 162 | fs/nfs/proc.c | *p++ = htonl(sattr->mtime.useconds); |
p | 163 | fs/nfs/proc.c | return p; |
p | 166 | fs/nfs/proc.c | static int *xdr_decode_entry(int *p, struct nfs_entry *entry) |
p | 168 | fs/nfs/proc.c | entry->fileid = ntohl(*p++); |
p | 169 | fs/nfs/proc.c | if (!(p = xdr_decode_string(p, entry->name, NFS_MAXNAMLEN))) |
p | 171 | fs/nfs/proc.c | entry->cookie = ntohl(*p++); |
p | 173 | fs/nfs/proc.c | return p; |
p | 176 | fs/nfs/proc.c | static int *xdr_decode_fsinfo(int *p, struct nfs_fsinfo *res) |
p | 178 | fs/nfs/proc.c | res->tsize = ntohl(*p++); |
p | 179 | fs/nfs/proc.c | res->bsize = ntohl(*p++); |
p | 180 | fs/nfs/proc.c | res->blocks = ntohl(*p++); |
p | 181 | fs/nfs/proc.c | res->bfree = ntohl(*p++); |
p | 182 | fs/nfs/proc.c | res->bavail = ntohl(*p++); |
p | 183 | fs/nfs/proc.c | return p; |
p | 193 | fs/nfs/proc.c | int *p, *p0; |
p | 201 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_GETATTR, ruid); |
p | 202 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 203 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 207 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 209 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 210 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 227 | fs/nfs/proc.c | int *p, *p0; |
p | 235 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_SETATTR, ruid); |
p | 236 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 237 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 238 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 242 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 244 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 245 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 262 | fs/nfs/proc.c | int *p, *p0; |
p | 274 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_LOOKUP, ruid); |
p | 275 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 276 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 277 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 281 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 283 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 284 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 285 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 302 | fs/nfs/proc.c | int *p, *p0; |
p | 310 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READLINK, ruid); |
p | 311 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 312 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 316 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 318 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 319 | fs/nfs/proc.c | if (!(p = xdr_decode_string(p, res, NFS_MAXPATHLEN))) { |
p | 340 | fs/nfs/proc.c | int *p, *p0; |
p | 349 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READ, ruid); |
p | 350 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 351 | fs/nfs/proc.c | *p++ = htonl(offset); |
p | 352 | fs/nfs/proc.c | *p++ = htonl(count); |
p | 353 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
p | 354 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 358 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 360 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 361 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 362 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count))) { |
p | 383 | fs/nfs/proc.c | int *p, *p0; |
p | 391 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_WRITE, ruid); |
p | 392 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 393 | fs/nfs/proc.c | *p++ = htonl(offset); /* traditional, could be any value */ |
p | 394 | fs/nfs/proc.c | *p++ = htonl(offset); |
p | 395 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
p | 396 | fs/nfs/proc.c | p = xdr_encode_data(p, data, count); |
p | 397 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 401 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 403 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 404 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 422 | fs/nfs/proc.c | int *p, *p0; |
p | 430 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_CREATE, ruid); |
p | 431 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 432 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 433 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 434 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 438 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 440 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 441 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 442 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 458 | fs/nfs/proc.c | int *p, *p0; |
p | 466 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_REMOVE, ruid); |
p | 467 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 468 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 469 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 473 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 475 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 493 | fs/nfs/proc.c | int *p, *p0; |
p | 501 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_RENAME, ruid); |
p | 502 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, old_dir); |
p | 503 | fs/nfs/proc.c | p = xdr_encode_string(p, old_name); |
p | 504 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, new_dir); |
p | 505 | fs/nfs/proc.c | p = xdr_encode_string(p, new_name); |
p | 506 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 510 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 512 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 529 | fs/nfs/proc.c | int *p, *p0; |
p | 537 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_LINK, ruid); |
p | 538 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 539 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 540 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 541 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 545 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 547 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 564 | fs/nfs/proc.c | int *p, *p0; |
p | 572 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_SYMLINK, ruid); |
p | 573 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 574 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 575 | fs/nfs/proc.c | p = xdr_encode_string(p, path); |
p | 576 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 577 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 581 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 583 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 601 | fs/nfs/proc.c | int *p, *p0; |
p | 609 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_MKDIR, ruid); |
p | 610 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 611 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 612 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 613 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 617 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 619 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 620 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 621 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 637 | fs/nfs/proc.c | int *p, *p0; |
p | 645 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_RMDIR, ruid); |
p | 646 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 647 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 648 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 652 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 654 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 671 | fs/nfs/proc.c | int *p, *p0; |
p | 683 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READDIR, ruid); |
p | 684 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 685 | fs/nfs/proc.c | *p++ = htonl(cookie); |
p | 686 | fs/nfs/proc.c | *p++ = htonl(size); |
p | 687 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 691 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 693 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 694 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
p | 695 | fs/nfs/proc.c | if (!(p = xdr_decode_entry(p, entry++))) |
p | 698 | fs/nfs/proc.c | if (!p) { |
p | 703 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
p | 704 | fs/nfs/proc.c | || (i < count && *p++); |
p | 725 | fs/nfs/proc.c | int *p, *p0; |
p | 733 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_STATFS, ruid); |
p | 734 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 735 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 739 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 741 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 742 | fs/nfs/proc.c | p = xdr_decode_fsinfo(p, res); |
p | 760 | fs/nfs/proc.c | static int *nfs_rpc_header(int *p, int procedure, int ruid) |
p | 771 | fs/nfs/proc.c | *p++ = htonl(++xid); |
p | 772 | fs/nfs/proc.c | *p++ = htonl(RPC_CALL); |
p | 773 | fs/nfs/proc.c | *p++ = htonl(RPC_VERSION); |
p | 774 | fs/nfs/proc.c | *p++ = htonl(NFS_PROGRAM); |
p | 775 | fs/nfs/proc.c | *p++ = htonl(NFS_VERSION); |
p | 776 | fs/nfs/proc.c | *p++ = htonl(procedure); |
p | 777 | fs/nfs/proc.c | *p++ = htonl(RPC_AUTH_UNIX); |
p | 778 | fs/nfs/proc.c | p1 = p++; |
p | 779 | fs/nfs/proc.c | *p++ = htonl(CURRENT_TIME); /* traditional, could be anything */ |
p | 780 | fs/nfs/proc.c | p = xdr_encode_string(p, (char *) sys); |
p | 781 | fs/nfs/proc.c | *p++ = htonl(ruid ? current->uid : current->euid); |
p | 782 | fs/nfs/proc.c | *p++ = htonl(current->egid); |
p | 783 | fs/nfs/proc.c | p2 = p++; |
p | 785 | fs/nfs/proc.c | *p++ = htonl(current->groups[i]); |
p | 787 | fs/nfs/proc.c | *p1 = htonl((p - (p1 + 1)) << 2); |
p | 788 | fs/nfs/proc.c | *p++ = htonl(RPC_AUTH_NULL); |
p | 789 | fs/nfs/proc.c | *p++ = htonl(0); |
p | 790 | fs/nfs/proc.c | return p; |
p | 793 | fs/nfs/proc.c | static int *nfs_rpc_verify(int *p) |
p | 797 | fs/nfs/proc.c | p++; |
p | 798 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_REPLY) { |
p | 802 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) { |
p | 806 | fs/nfs/proc.c | switch (n = ntohl(*p++)) { |
p | 813 | fs/nfs/proc.c | if ((n = ntohl(*p++)) > 400) { |
p | 817 | fs/nfs/proc.c | p += (n + 3) >> 2; |
p | 818 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_SUCCESS) { |
p | 822 | fs/nfs/proc.c | return p; |
p | 41 | fs/proc/array.c | unsigned long p = file->f_pos; |
p | 53 | fs/proc/array.c | if (p >= high_memory + PAGE_SIZE) |
p | 55 | fs/proc/array.c | if (count > high_memory + PAGE_SIZE - p) |
p | 56 | fs/proc/array.c | count = high_memory + PAGE_SIZE - p; |
p | 59 | fs/proc/array.c | if (p < sizeof(struct user) && count > 0) { |
p | 61 | fs/proc/array.c | if (p + count1 > sizeof(struct user)) |
p | 62 | fs/proc/array.c | count1 = sizeof(struct user)-p; |
p | 63 | fs/proc/array.c | pnt = (char *) &dump + p; |
p | 66 | fs/proc/array.c | p += count1; |
p | 71 | fs/proc/array.c | while (p < 2*PAGE_SIZE && count > 0) { |
p | 74 | fs/proc/array.c | p++; |
p | 78 | fs/proc/array.c | memcpy_tofs(buf,(void *) (p - PAGE_SIZE),count); |
p | 171 | fs/proc/array.c | struct task_struct ** p; |
p | 173 | fs/proc/array.c | p = task; |
p | 174 | fs/proc/array.c | while (++p < task+NR_TASKS) { |
p | 175 | fs/proc/array.c | if (*p && (*p)->pid == pid) |
p | 176 | fs/proc/array.c | return p; |
p | 181 | fs/proc/array.c | static unsigned long get_phys_addr(struct task_struct ** p, unsigned long ptr) |
p | 185 | fs/proc/array.c | if (!p || !*p || ptr >= TASK_SIZE) |
p | 187 | fs/proc/array.c | page = *PAGE_DIR_OFFSET((*p)->tss.cr3,ptr); |
p | 200 | fs/proc/array.c | static int get_array(struct task_struct ** p, unsigned long start, unsigned long end, char * buffer) |
p | 209 | fs/proc/array.c | addr = get_phys_addr(p, start); |
p | 235 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 237 | fs/proc/array.c | if (!p || !*p) |
p | 239 | fs/proc/array.c | return get_array(p, (*p)->env_start, (*p)->env_end, buffer); |
p | 244 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 246 | fs/proc/array.c | if (!p || !*p) |
p | 248 | fs/proc/array.c | return get_array(p, (*p)->arg_start, (*p)->arg_end, buffer); |
p | 251 | fs/proc/array.c | static unsigned long get_wchan(struct task_struct *p) |
p | 257 | fs/proc/array.c | if (!p || p == current || p->state == TASK_RUNNING) |
p | 259 | fs/proc/array.c | stack_page = p->kernel_stack_page; |
p | 262 | fs/proc/array.c | ebp = p->tss.ebp; |
p | 280 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 286 | fs/proc/array.c | if (!p || !*p) |
p | 288 | fs/proc/array.c | if ((*p)->state < 0 || (*p)->state > 5) |
p | 291 | fs/proc/array.c | state = "RSDZTD"[(*p)->state]; |
p | 293 | fs/proc/array.c | vsize = (*p)->kernel_stack_page; |
p | 297 | fs/proc/array.c | vsize = (*p)->brk - (*p)->start_code + PAGE_SIZE-1; |
p | 301 | fs/proc/array.c | wchan = get_wchan(*p); |
p | 303 | fs/proc/array.c | switch((int) (*p)->sigaction[i].sa_handler) { |
p | 309 | fs/proc/array.c | tty_pgrp = (*p)->tty; |
p | 318 | fs/proc/array.c | (*p)->comm, |
p | 320 | fs/proc/array.c | (*p)->p_pptr->pid, |
p | 321 | fs/proc/array.c | (*p)->pgrp, |
p | 322 | fs/proc/array.c | (*p)->session, |
p | 323 | fs/proc/array.c | (*p)->tty, |
p | 325 | fs/proc/array.c | (*p)->flags, |
p | 326 | fs/proc/array.c | (*p)->min_flt, |
p | 327 | fs/proc/array.c | (*p)->cmin_flt, |
p | 328 | fs/proc/array.c | (*p)->maj_flt, |
p | 329 | fs/proc/array.c | (*p)->cmaj_flt, |
p | 330 | fs/proc/array.c | (*p)->utime, |
p | 331 | fs/proc/array.c | (*p)->stime, |
p | 332 | fs/proc/array.c | (*p)->cutime, |
p | 333 | fs/proc/array.c | (*p)->cstime, |
p | 334 | fs/proc/array.c | (*p)->counter, /* this is the kernel priority --- |
p | 336 | fs/proc/array.c | (*p)->priority, /* this is the nice value --- |
p | 338 | fs/proc/array.c | (*p)->timeout, |
p | 339 | fs/proc/array.c | (*p)->it_real_value, |
p | 340 | fs/proc/array.c | (*p)->start_time, |
p | 342 | fs/proc/array.c | (*p)->rss, /* you might want to shift this left 3 */ |
p | 343 | fs/proc/array.c | (*p)->rlim[RLIMIT_RSS].rlim_cur, |
p | 344 | fs/proc/array.c | (*p)->start_code, |
p | 345 | fs/proc/array.c | (*p)->end_code, |
p | 346 | fs/proc/array.c | (*p)->start_stack, |
p | 349 | fs/proc/array.c | (*p)->signal, |
p | 350 | fs/proc/array.c | (*p)->blocked, |
p | 358 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 363 | fs/proc/array.c | if (!p || !*p) |
p | 365 | fs/proc/array.c | tpag = (*p)->end_code / PAGE_SIZE; |
p | 366 | fs/proc/array.c | if ((*p)->state != TASK_ZOMBIE) { |
p | 367 | fs/proc/array.c | pagedir = (unsigned long *) (*p)->tss.cr3; |
p | 406 | fs/proc/array.c | struct task_struct **p = get_task(pid); |
p | 409 | fs/proc/array.c | if (!p || !*p) |
p | 412 | fs/proc/array.c | for(map = (*p)->mmap; map != NULL; map = map->vm_next) { |
p | 57 | fs/proc/fd.c | struct task_struct * p; |
p | 103 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
p | 108 | fs/proc/fd.c | if (fd >= NR_OPEN || !p->filp[fd] || !p->filp[fd]->f_inode) |
p | 114 | fs/proc/fd.c | for (mpnt = p->mmap; mpnt; mpnt = mpnt->vm_next) |
p | 129 | fs/proc/fd.c | struct task_struct * p; |
p | 159 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
p | 166 | fs/proc/fd.c | if (!p->filp[fd] || !p->filp[fd]->f_inode) |
p | 171 | fs/proc/fd.c | for (mpnt = p->mmap ; mpnt ; mpnt = mpnt->vm_next) |
p | 77 | fs/proc/inode.c | struct task_struct * p; |
p | 91 | fs/proc/inode.c | p = task[0]; |
p | 93 | fs/proc/inode.c | if ((p = task[i]) && (p->pid == pid)) |
p | 95 | fs/proc/inode.c | if (!p || i >= NR_TASKS) |
p | 135 | fs/proc/inode.c | inode->i_uid = p->euid; |
p | 136 | fs/proc/inode.c | inode->i_gid = p->egid; |
p | 172 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->filp[ino]) |
p | 183 | fs/proc/inode.c | for (mpnt = p->mmap ; mpnt ; mpnt = mpnt->vm_next) |
p | 45 | fs/proc/link.c | struct task_struct * p; |
p | 62 | fs/proc/link.c | if ((p = task[i]) && p->pid == pid) |
p | 69 | fs/proc/link.c | inode = p->pwd; |
p | 72 | fs/proc/link.c | inode = p->root; |
p | 75 | fs/proc/link.c | inode = p->executable; |
p | 81 | fs/proc/link.c | if (ino < NR_OPEN && p->filp[ino]) |
p | 82 | fs/proc/link.c | inode = p->filp[ino]->f_inode; |
p | 88 | fs/proc/link.c | for(mpnt = p->mmap; mpnt && j >= 0; |
p | 134 | fs/proc/root.c | struct task_struct * p; |
p | 159 | fs/proc/root.c | p = task[nr]; |
p | 160 | fs/proc/root.c | if (!p || !(pid = p->pid)) |
p | 41 | fs/select.c | static void free_wait(select_table * p) |
p | 43 | fs/select.c | struct select_table_entry * entry = p->entry + p->nr; |
p | 45 | fs/select.c | while (p->nr > 0) { |
p | 46 | fs/select.c | p->nr--; |
p | 249 | fs/sysv/file.c | char * p; |
p | 294 | fs/sysv/file.c | p = (pos & sb->sv_block_size_1) + bh_data; |
p | 301 | fs/sysv/file.c | memcpy_fromfs(p,buf,c); |
p | 476 | fs/sysv/inode.c | unsigned long *p; |
p | 480 | fs/sysv/inode.c | p = inode->u.sysv_i.i_data + nr; |
p | 482 | fs/sysv/inode.c | tmp = *p; |
p | 485 | fs/sysv/inode.c | if (tmp == *p) { |
p | 498 | fs/sysv/inode.c | if (*p) { |
p | 503 | fs/sysv/inode.c | *p = tmp; |
p | 515 | fs/sysv/inode.c | sysv_zone_t *p; |
p | 529 | fs/sysv/inode.c | p = nr + (sysv_zone_t *) *start; |
p | 531 | fs/sysv/inode.c | block = tmp = *p; |
p | 536 | fs/sysv/inode.c | if (tmp == *p) { |
p | 554 | fs/sysv/inode.c | if (*p) { |
p | 559 | fs/sysv/inode.c | *p = (sb->sv_convert ? to_coh_ulong(block) : block); |
p | 616 | fs/sysv/inode.c | static inline unsigned long read3byte (char * p) |
p | 618 | fs/sysv/inode.c | return (unsigned long)(*(unsigned short *)p) |
p | 619 | fs/sysv/inode.c | | (unsigned long)(*(unsigned char *)(p+2)) << 16; |
p | 622 | fs/sysv/inode.c | static inline void write3byte (char * p, unsigned long val) |
p | 624 | fs/sysv/inode.c | *(unsigned short *)p = (unsigned short) val; |
p | 625 | fs/sysv/inode.c | *(unsigned char *)(p+2) = val >> 16; |
p | 628 | fs/sysv/inode.c | static inline unsigned long coh_read3byte (char * p) |
p | 630 | fs/sysv/inode.c | return (unsigned long)(*(unsigned char *)p) << 16 |
p | 631 | fs/sysv/inode.c | | (unsigned long)(*(unsigned short *)(p+1)); |
p | 634 | fs/sysv/inode.c | static inline void coh_write3byte (char * p, unsigned long val) |
p | 636 | fs/sysv/inode.c | *(unsigned char *)p = val >> 16; |
p | 637 | fs/sysv/inode.c | *(unsigned short *)(p+1) = (unsigned short) val; |
p | 35 | fs/sysv/truncate.c | unsigned long * p; |
p | 39 | fs/sysv/truncate.c | p = &inode->u.sysv_i.i_data[i]; |
p | 40 | fs/sysv/truncate.c | block = *p; |
p | 43 | fs/sysv/truncate.c | *p = 0; |
p | 53 | fs/sysv/truncate.c | static int coh_trunc_indirect (struct inode * inode, unsigned long blocks, unsigned long * p, int convert, unsigned char * dirt) |
p | 64 | fs/sysv/truncate.c | block = tmp = *p; |
p | 70 | fs/sysv/truncate.c | if (tmp != *p) { |
p | 75 | fs/sysv/truncate.c | *p = 0; |
p | 93 | fs/sysv/truncate.c | if (tmp != *p) { |
p | 97 | fs/sysv/truncate.c | *p = 0; |
p | 108 | fs/sysv/truncate.c | static int coh_trunc_dindirect (struct inode * inode, unsigned long blocks, unsigned long * p, int convert, unsigned char * dirt) |
p | 120 | fs/sysv/truncate.c | block = tmp = *p; |
p | 126 | fs/sysv/truncate.c | if (tmp != *p) { |
p | 131 | fs/sysv/truncate.c | *p = 0; |
p | 150 | fs/sysv/truncate.c | if (tmp != *p) { |
p | 154 | fs/sysv/truncate.c | *p = 0; |
p | 165 | fs/sysv/truncate.c | static int coh_trunc_tindirect (struct inode * inode, unsigned long blocks, unsigned long * p) |
p | 177 | fs/sysv/truncate.c | block = *p; |
p | 181 | fs/sysv/truncate.c | if (block != *p) { |
p | 186 | fs/sysv/truncate.c | *p = 0; |
p | 205 | fs/sysv/truncate.c | if (block != *p) { |
p | 209 | fs/sysv/truncate.c | *p = 0; |
p | 259 | fs/sysv/truncate.c | unsigned long * p; |
p | 267 | fs/sysv/truncate.c | p = inode->u.sysv_i.i_data + i; |
p | 268 | fs/sysv/truncate.c | block = *p; |
p | 276 | fs/sysv/truncate.c | if ((bh && bh->b_count != 1) || (block != *p)) { |
p | 281 | fs/sysv/truncate.c | *p = 0; |
p | 291 | fs/sysv/truncate.c | static int trunc_indirect(struct inode * inode, unsigned long offset, unsigned long * p, int convert, unsigned char * dirt) |
p | 302 | fs/sysv/truncate.c | indblock = indtmp = *p; |
p | 309 | fs/sysv/truncate.c | if (indtmp != *p) { |
p | 314 | fs/sysv/truncate.c | *p = 0; |
p | 348 | fs/sysv/truncate.c | if ((indbh->b_count != 1) || (indtmp != *p)) { |
p | 352 | fs/sysv/truncate.c | *p = 0; |
p | 360 | fs/sysv/truncate.c | static int trunc_dindirect(struct inode * inode, unsigned long offset, unsigned long * p, int convert, unsigned char * dirt) |
p | 370 | fs/sysv/truncate.c | indblock = indtmp = *p; |
p | 377 | fs/sysv/truncate.c | if (indtmp != *p) { |
p | 382 | fs/sysv/truncate.c | *p = 0; |
p | 402 | fs/sysv/truncate.c | if ((indbh->b_count != 1) || (indtmp != *p)) { |
p | 406 | fs/sysv/truncate.c | *p = 0; |
p | 414 | fs/sysv/truncate.c | static int trunc_tindirect(struct inode * inode, unsigned long offset, unsigned long * p, int convert, unsigned char * dirt) |
p | 424 | fs/sysv/truncate.c | indblock = indtmp = *p; |
p | 431 | fs/sysv/truncate.c | if (indtmp != *p) { |
p | 436 | fs/sysv/truncate.c | *p = 0; |
p | 456 | fs/sysv/truncate.c | if ((indbh->b_count != 1) || (indtmp != *p)) { |
p | 460 | fs/sysv/truncate.c | *p = 0; |
p | 19 | include/linux/binfmts.h | unsigned long p; |
p | 44 | include/linux/binfmts.h | extern unsigned long * create_tables(char * p,int argc,int envc,int ibcs); |
p | 46 | include/linux/binfmts.h | unsigned long p, int from_kmem); |
p | 315 | include/linux/sched.h | extern void sleep_on(struct wait_queue ** p); |
p | 316 | include/linux/sched.h | extern void interruptible_sleep_on(struct wait_queue ** p); |
p | 317 | include/linux/sched.h | extern void wake_up(struct wait_queue ** p); |
p | 318 | include/linux/sched.h | extern void wake_up_interruptible(struct wait_queue ** p); |
p | 321 | include/linux/sched.h | extern int send_sig(unsigned long sig,struct task_struct * p,int priv); |
p | 408 | include/linux/sched.h | extern inline void add_wait_queue(struct wait_queue ** p, struct wait_queue * wait) |
p | 422 | include/linux/sched.h | if (!*p) { |
p | 424 | include/linux/sched.h | *p = wait; |
p | 426 | include/linux/sched.h | wait->next = (*p)->next; |
p | 427 | include/linux/sched.h | (*p)->next = wait; |
p | 432 | include/linux/sched.h | extern inline void remove_wait_queue(struct wait_queue ** p, struct wait_queue * wait) |
p | 442 | include/linux/sched.h | if ((*p == wait) && |
p | 446 | include/linux/sched.h | ((*p = wait->next) == wait)) { |
p | 447 | include/linux/sched.h | *p = NULL; |
p | 453 | include/linux/sched.h | if (tmp == *p) |
p | 464 | include/linux/sched.h | printk("list = %08x, queue = %08x\n",(unsigned long) p, (unsigned long) wait); |
p | 471 | include/linux/sched.h | extern inline void select_wait(struct wait_queue ** wait_address, select_table * p) |
p | 475 | include/linux/sched.h | if (!p || !wait_address) |
p | 477 | include/linux/sched.h | if (p->nr >= __MAX_SELECT_TABLE_ENTRIES) |
p | 479 | include/linux/sched.h | entry = p->entry + p->nr; |
p | 484 | include/linux/sched.h | p->nr++; |
p | 526 | include/linux/sched.h | #define REMOVE_LINKS(p) do { unsigned long flags; \ |
p | 528 | include/linux/sched.h | (p)->next_task->prev_task = (p)->prev_task; \ |
p | 529 | include/linux/sched.h | (p)->prev_task->next_task = (p)->next_task; \ |
p | 531 | include/linux/sched.h | if ((p)->p_osptr) \ |
p | 532 | include/linux/sched.h | (p)->p_osptr->p_ysptr = (p)->p_ysptr; \ |
p | 533 | include/linux/sched.h | if ((p)->p_ysptr) \ |
p | 534 | include/linux/sched.h | (p)->p_ysptr->p_osptr = (p)->p_osptr; \ |
p | 536 | include/linux/sched.h | (p)->p_pptr->p_cptr = (p)->p_osptr; \ |
p | 539 | include/linux/sched.h | #define SET_LINKS(p) do { unsigned long flags; \ |
p | 541 | include/linux/sched.h | (p)->next_task = &init_task; \ |
p | 542 | include/linux/sched.h | (p)->prev_task = init_task.prev_task; \ |
p | 543 | include/linux/sched.h | init_task.prev_task->next_task = (p); \ |
p | 544 | include/linux/sched.h | init_task.prev_task = (p); \ |
p | 546 | include/linux/sched.h | (p)->p_ysptr = NULL; \ |
p | 547 | include/linux/sched.h | if (((p)->p_osptr = (p)->p_pptr->p_cptr) != NULL) \ |
p | 548 | include/linux/sched.h | (p)->p_osptr->p_ysptr = p; \ |
p | 549 | include/linux/sched.h | (p)->p_pptr->p_cptr = p; \ |
p | 552 | include/linux/sched.h | #define for_each_task(p) \ |
p | 553 | include/linux/sched.h | for (p = &init_task ; (p = p->next_task) != &init_task ; ) |
p | 108 | include/linux/ultrasound.h | #define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \ |
p | 109 | include/linux/ultrasound.h | (p) & 0xffff, ((p) >> 16) & 0xffff) |
p | 118 | include/linux/ultrasound.h | #define GUS_VOICE_POS(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICE_POS, \ |
p | 119 | include/linux/ultrasound.h | (p) & 0xffff, ((p) >> 16) & 0xffff) |
p | 44 | kernel/dma.c | static __inline__ unsigned int mutex_atomic_swap(volatile unsigned int * p, unsigned int newval) |
p | 57 | kernel/dma.c | : /* inputs: newval, p */ "0" (semval), "m" (*p) |
p | 25 | kernel/exit.c | static int generate(unsigned long sig, struct task_struct * p) |
p | 28 | kernel/exit.c | struct sigaction * sa = sig + p->sigaction - 1; |
p | 31 | kernel/exit.c | if (p->flags & PF_PTRACED) { |
p | 32 | kernel/exit.c | p->signal |= mask; |
p | 42 | kernel/exit.c | p->signal |= mask; |
p | 46 | kernel/exit.c | int send_sig(unsigned long sig,struct task_struct * p,int priv) |
p | 48 | kernel/exit.c | if (!p || sig > 32) |
p | 50 | kernel/exit.c | if (!priv && ((sig != SIGCONT) || (current->session != p->session)) && |
p | 51 | kernel/exit.c | (current->euid != p->euid) && (current->uid != p->uid) && !suser()) |
p | 56 | kernel/exit.c | if (p->state == TASK_STOPPED) |
p | 57 | kernel/exit.c | p->state = TASK_RUNNING; |
p | 58 | kernel/exit.c | p->exit_code = 0; |
p | 59 | kernel/exit.c | p->signal &= ~( (1<<(SIGSTOP-1)) | (1<<(SIGTSTP-1)) | |
p | 64 | kernel/exit.c | p->signal &= ~(1<<(SIGCONT-1)); |
p | 66 | kernel/exit.c | generate(sig,p); |
p | 78 | kernel/exit.c | void release(struct task_struct * p) |
p | 82 | kernel/exit.c | if (!p) |
p | 84 | kernel/exit.c | if (p == current) { |
p | 89 | kernel/exit.c | if (task[i] == p) { |
p | 91 | kernel/exit.c | REMOVE_LINKS(p); |
p | 92 | kernel/exit.c | if (STACK_MAGIC != *(unsigned long *)p->kernel_stack_page) |
p | 93 | kernel/exit.c | printk(KERN_ALERT "release: %s kernel stack corruption. Aiee\n", p->comm); |
p | 94 | kernel/exit.c | free_page(p->kernel_stack_page); |
p | 95 | kernel/exit.c | free_page((long) p); |
p | 106 | kernel/exit.c | int bad_task_ptr(struct task_struct *p) |
p | 110 | kernel/exit.c | if (!p) |
p | 113 | kernel/exit.c | if (task[i] == p) |
p | 201 | kernel/exit.c | struct task_struct *p; |
p | 205 | kernel/exit.c | for_each_task(p) { |
p | 206 | kernel/exit.c | if (p->session <= 0) |
p | 208 | kernel/exit.c | if (p->pgrp == pgrp) |
p | 209 | kernel/exit.c | return p->session; |
p | 210 | kernel/exit.c | if (p->pid == pgrp) |
p | 211 | kernel/exit.c | fallback = p->session; |
p | 222 | kernel/exit.c | struct task_struct *p; |
p | 228 | kernel/exit.c | for_each_task(p) { |
p | 229 | kernel/exit.c | if (p->pgrp == pgrp) { |
p | 230 | kernel/exit.c | if ((err = send_sig(sig,p,priv)) != 0) |
p | 246 | kernel/exit.c | struct task_struct *p; |
p | 252 | kernel/exit.c | for_each_task(p) { |
p | 253 | kernel/exit.c | if (p->session == sess && p->leader) { |
p | 254 | kernel/exit.c | if ((err = send_sig(sig,p,priv)) != 0) |
p | 265 | kernel/exit.c | struct task_struct *p; |
p | 269 | kernel/exit.c | for_each_task(p) { |
p | 270 | kernel/exit.c | if (p && p->pid == pid) |
p | 271 | kernel/exit.c | return send_sig(sig,p,priv); |
p | 287 | kernel/exit.c | struct task_struct * p; |
p | 288 | kernel/exit.c | for_each_task(p) { |
p | 289 | kernel/exit.c | if (p->pid > 1 && p != current) { |
p | 291 | kernel/exit.c | if ((err = send_sig(sig,p,0)) != -EPERM) |
p | 313 | kernel/exit.c | struct task_struct *p; |
p | 315 | kernel/exit.c | for_each_task(p) { |
p | 316 | kernel/exit.c | if ((p->pgrp != pgrp) || |
p | 317 | kernel/exit.c | (p->state == TASK_ZOMBIE) || |
p | 318 | kernel/exit.c | (p->p_pptr->pid == 1)) |
p | 320 | kernel/exit.c | if ((p->p_pptr->pgrp != pgrp) && |
p | 321 | kernel/exit.c | (p->p_pptr->session == p->session)) |
p | 329 | kernel/exit.c | struct task_struct * p; |
p | 331 | kernel/exit.c | for_each_task(p) { |
p | 332 | kernel/exit.c | if (p->pgrp != pgrp) |
p | 334 | kernel/exit.c | if (p->state == TASK_STOPPED) |
p | 342 | kernel/exit.c | struct task_struct * p; |
p | 344 | kernel/exit.c | for_each_task(p) { |
p | 345 | kernel/exit.c | if (p->p_opptr == father) |
p | 347 | kernel/exit.c | p->p_opptr = task[1]; |
p | 349 | kernel/exit.c | p->p_opptr = task[0]; |
p | 355 | kernel/exit.c | struct task_struct *p; |
p | 431 | kernel/exit.c | while ((p = current->p_cptr) != NULL) { |
p | 432 | kernel/exit.c | current->p_cptr = p->p_osptr; |
p | 433 | kernel/exit.c | p->p_ysptr = NULL; |
p | 434 | kernel/exit.c | p->flags &= ~(PF_PTRACED|PF_TRACESYS); |
p | 436 | kernel/exit.c | p->p_pptr = task[1]; |
p | 438 | kernel/exit.c | p->p_pptr = task[0]; |
p | 439 | kernel/exit.c | p->p_osptr = p->p_pptr->p_cptr; |
p | 440 | kernel/exit.c | p->p_osptr->p_ysptr = p; |
p | 441 | kernel/exit.c | p->p_pptr->p_cptr = p; |
p | 442 | kernel/exit.c | if (p->state == TASK_ZOMBIE) |
p | 443 | kernel/exit.c | notify_parent(p); |
p | 450 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
p | 451 | kernel/exit.c | (p->session == current->session) && |
p | 452 | kernel/exit.c | is_orphaned_pgrp(p->pgrp) && |
p | 453 | kernel/exit.c | has_stopped_jobs(p->pgrp)) { |
p | 454 | kernel/exit.c | kill_pg(p->pgrp,SIGHUP,1); |
p | 455 | kernel/exit.c | kill_pg(p->pgrp,SIGCONT,1); |
p | 494 | kernel/exit.c | struct task_struct *p; |
p | 504 | kernel/exit.c | for (p = current->p_cptr ; p ; p = p->p_osptr) { |
p | 506 | kernel/exit.c | if (p->pid != pid) |
p | 509 | kernel/exit.c | if (p->pgrp != current->pgrp) |
p | 512 | kernel/exit.c | if (p->pgrp != -pid) |
p | 516 | kernel/exit.c | if ((p->exit_signal != SIGCHLD) ^ ((options & __WCLONE) != 0)) |
p | 519 | kernel/exit.c | switch (p->state) { |
p | 521 | kernel/exit.c | if (!p->exit_code) |
p | 523 | kernel/exit.c | if (!(options & WUNTRACED) && !(p->flags & PF_PTRACED)) |
p | 526 | kernel/exit.c | put_fs_long((p->exit_code << 8) | 0x7f, |
p | 528 | kernel/exit.c | p->exit_code = 0; |
p | 530 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 531 | kernel/exit.c | retval = p->pid; |
p | 534 | kernel/exit.c | current->cutime += p->utime + p->cutime; |
p | 535 | kernel/exit.c | current->cstime += p->stime + p->cstime; |
p | 536 | kernel/exit.c | current->cmin_flt += p->min_flt + p->cmin_flt; |
p | 537 | kernel/exit.c | current->cmaj_flt += p->maj_flt + p->cmaj_flt; |
p | 539 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 540 | kernel/exit.c | flag = p->pid; |
p | 542 | kernel/exit.c | put_fs_long(p->exit_code, stat_addr); |
p | 543 | kernel/exit.c | if (p->p_opptr != p->p_pptr) { |
p | 544 | kernel/exit.c | REMOVE_LINKS(p); |
p | 545 | kernel/exit.c | p->p_pptr = p->p_opptr; |
p | 546 | kernel/exit.c | SET_LINKS(p); |
p | 547 | kernel/exit.c | notify_parent(p); |
p | 549 | kernel/exit.c | release(p); |
p | 94 | kernel/fork.c | struct vm_area_struct * mpnt, **p, *tmp; |
p | 98 | kernel/fork.c | p = &tsk->mmap; |
p | 108 | kernel/fork.c | *p = tmp; |
p | 109 | kernel/fork.c | p = &tmp->vm_next; |
p | 117 | kernel/fork.c | #define copy_vm(p) ((clone_flags & COPYVM)?copy_page_tables(p):clone_page_tables(p)) |
p | 127 | kernel/fork.c | struct task_struct *p; |
p | 132 | kernel/fork.c | if(!(p = (struct task_struct*)__get_free_page(GFP_KERNEL))) |
p | 137 | kernel/fork.c | task[nr] = p; |
p | 138 | kernel/fork.c | *p = *current; |
p | 139 | kernel/fork.c | p->did_exec = 0; |
p | 140 | kernel/fork.c | p->kernel_stack_page = 0; |
p | 141 | kernel/fork.c | p->state = TASK_UNINTERRUPTIBLE; |
p | 142 | kernel/fork.c | p->flags &= ~(PF_PTRACED|PF_TRACESYS); |
p | 143 | kernel/fork.c | p->pid = last_pid; |
p | 144 | kernel/fork.c | p->swappable = 1; |
p | 145 | kernel/fork.c | p->p_pptr = p->p_opptr = current; |
p | 146 | kernel/fork.c | p->p_cptr = NULL; |
p | 147 | kernel/fork.c | SET_LINKS(p); |
p | 148 | kernel/fork.c | p->signal = 0; |
p | 149 | kernel/fork.c | p->it_real_value = p->it_virt_value = p->it_prof_value = 0; |
p | 150 | kernel/fork.c | p->it_real_incr = p->it_virt_incr = p->it_prof_incr = 0; |
p | 151 | kernel/fork.c | p->leader = 0; /* process leadership doesn't inherit */ |
p | 152 | kernel/fork.c | p->utime = p->stime = 0; |
p | 153 | kernel/fork.c | p->cutime = p->cstime = 0; |
p | 154 | kernel/fork.c | p->min_flt = p->maj_flt = 0; |
p | 155 | kernel/fork.c | p->cmin_flt = p->cmaj_flt = 0; |
p | 156 | kernel/fork.c | p->start_time = jiffies; |
p | 160 | kernel/fork.c | if (!(p->kernel_stack_page = get_free_page(GFP_KERNEL))) |
p | 162 | kernel/fork.c | *(unsigned long *)p->kernel_stack_page = STACK_MAGIC; |
p | 163 | kernel/fork.c | p->tss.es = KERNEL_DS; |
p | 164 | kernel/fork.c | p->tss.cs = KERNEL_CS; |
p | 165 | kernel/fork.c | p->tss.ss = KERNEL_DS; |
p | 166 | kernel/fork.c | p->tss.ds = KERNEL_DS; |
p | 167 | kernel/fork.c | p->tss.fs = USER_DS; |
p | 168 | kernel/fork.c | p->tss.gs = KERNEL_DS; |
p | 169 | kernel/fork.c | p->tss.ss0 = KERNEL_DS; |
p | 170 | kernel/fork.c | p->tss.esp0 = p->kernel_stack_page + PAGE_SIZE; |
p | 171 | kernel/fork.c | p->tss.tr = _TSS(nr); |
p | 172 | kernel/fork.c | childregs = ((struct pt_regs *) (p->kernel_stack_page + PAGE_SIZE)) - 1; |
p | 173 | kernel/fork.c | p->tss.esp = (unsigned long) childregs; |
p | 174 | kernel/fork.c | p->tss.eip = (unsigned long) ret_from_sys_call; |
p | 177 | kernel/fork.c | p->tss.back_link = 0; |
p | 178 | kernel/fork.c | p->tss.eflags = regs.eflags & 0xffffcfff; /* iopl is always 0 for a new process */ |
p | 186 | kernel/fork.c | p->exit_signal = clone_flags & CSIGNAL; |
p | 187 | kernel/fork.c | p->tss.ldt = _LDT(nr); |
p | 188 | kernel/fork.c | if (p->ldt) { |
p | 189 | kernel/fork.c | p->ldt = (struct desc_struct*) vmalloc(LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 190 | kernel/fork.c | if (p->ldt != NULL) |
p | 191 | kernel/fork.c | memcpy(p->ldt, current->ldt, LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 193 | kernel/fork.c | p->tss.bitmap = offsetof(struct tss_struct,io_bitmap); |
p | 195 | kernel/fork.c | p->tss.io_bitmap[i] = ~0; |
p | 197 | kernel/fork.c | __asm__("clts ; fnsave %0 ; frstor %0":"=m" (p->tss.i387)); |
p | 198 | kernel/fork.c | p->semun = NULL; p->shm = NULL; |
p | 199 | kernel/fork.c | if (copy_vm(p) || shm_fork(current, p)) |
p | 203 | kernel/fork.c | if ((f = p->filp[i]) != NULL) |
p | 204 | kernel/fork.c | p->filp[i] = copy_fd(f); |
p | 207 | kernel/fork.c | if ((f = p->filp[i]) != NULL) |
p | 216 | kernel/fork.c | dup_mmap(p); |
p | 217 | kernel/fork.c | set_tss_desc(gdt+(nr<<1)+FIRST_TSS_ENTRY,&(p->tss)); |
p | 218 | kernel/fork.c | if (p->ldt) |
p | 219 | kernel/fork.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,p->ldt, 512); |
p | 223 | kernel/fork.c | p->counter = current->counter >> 1; |
p | 224 | kernel/fork.c | p->state = TASK_RUNNING; /* do this last, just in case */ |
p | 225 | kernel/fork.c | return p->pid; |
p | 228 | kernel/fork.c | REMOVE_LINKS(p); |
p | 229 | kernel/fork.c | free_page(p->kernel_stack_page); |
p | 231 | kernel/fork.c | free_page((long) p); |
p | 21 | kernel/info.c | struct task_struct **p; |
p | 34 | kernel/info.c | for (p = &LAST_TASK; p > &FIRST_TASK; p--) |
p | 35 | kernel/info.c | if (*p) val.procs++; |
p | 238 | kernel/module.c | char *p; |
p | 244 | kernel/module.c | p = buf; |
p | 246 | kernel/module.c | if (p - buf > 4096 - 100) |
p | 251 | kernel/module.c | *p++ = *q++; |
p | 259 | kernel/module.c | *p++ = ' '; |
p | 262 | kernel/module.c | *p++ = *q++; |
p | 272 | kernel/module.c | *p++ = *q++; |
p | 273 | kernel/module.c | *p++ = '\n'; |
p | 275 | kernel/module.c | return p - buf; |
p | 146 | kernel/printk.c | char *msg, *p, *buf_end; |
p | 156 | kernel/printk.c | for (p = buf + 3; p < buf_end; p++) { |
p | 157 | kernel/printk.c | msg = p; |
p | 160 | kernel/printk.c | p[0] != '<' || |
p | 161 | kernel/printk.c | p[1] < '0' || |
p | 162 | kernel/printk.c | p[1] > '7' || |
p | 163 | kernel/printk.c | p[2] != '>' |
p | 165 | kernel/printk.c | p -= 3; |
p | 166 | kernel/printk.c | p[0] = '<'; |
p | 167 | kernel/printk.c | p[1] = DEFAULT_MESSAGE_LOGLEVEL - 1 + '0'; |
p | 168 | kernel/printk.c | p[2] = '>'; |
p | 171 | kernel/printk.c | msg_level = p[1] - '0'; |
p | 173 | kernel/printk.c | for (; p < buf_end; p++) { |
p | 174 | kernel/printk.c | log_buf[(log_start+log_size) & (LOG_BUF_LEN-1)] = *p; |
p | 180 | kernel/printk.c | if (*p == '\n') |
p | 184 | kernel/printk.c | char tmp = p[1]; |
p | 185 | kernel/printk.c | p[1] = '\0'; |
p | 187 | kernel/printk.c | p[1] = tmp; |
p | 189 | kernel/printk.c | if (*p == '\n') |
p | 206 | kernel/printk.c | int p = log_start; |
p | 214 | kernel/printk.c | buf[j++] = log_buf[p]; |
p | 215 | kernel/printk.c | p++; p &= LOG_BUF_LEN-1; |
p | 214 | kernel/sched.c | struct task_struct * p; |
p | 230 | kernel/sched.c | p = &init_task; |
p | 232 | kernel/sched.c | if ((p = p->next_task) == &init_task) |
p | 234 | kernel/sched.c | if (ticks && p->it_real_value) { |
p | 235 | kernel/sched.c | if (p->it_real_value <= ticks) { |
p | 236 | kernel/sched.c | send_sig(SIGALRM, p, 1); |
p | 237 | kernel/sched.c | if (!p->it_real_incr) { |
p | 238 | kernel/sched.c | p->it_real_value = 0; |
p | 242 | kernel/sched.c | p->it_real_value += p->it_real_incr; |
p | 243 | kernel/sched.c | } while (p->it_real_value <= ticks); |
p | 245 | kernel/sched.c | p->it_real_value -= ticks; |
p | 246 | kernel/sched.c | if (p->it_real_value < itimer_next) |
p | 247 | kernel/sched.c | itimer_next = p->it_real_value; |
p | 250 | kernel/sched.c | if (p->state != TASK_INTERRUPTIBLE) |
p | 252 | kernel/sched.c | if (p->signal & ~p->blocked) { |
p | 253 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 256 | kernel/sched.c | if (p->timeout && p->timeout <= jiffies) { |
p | 257 | kernel/sched.c | p->timeout = 0; |
p | 258 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 275 | kernel/sched.c | next = p = &init_task; |
p | 277 | kernel/sched.c | if ((p = p->next_task) == &init_task) |
p | 279 | kernel/sched.c | if (p->state == TASK_RUNNING && p->counter > c) |
p | 280 | kernel/sched.c | c = p->counter, next = p; |
p | 284 | kernel/sched.c | for_each_task(p) |
p | 285 | kernel/sched.c | p->counter = (p->counter >> 1) + p->priority; |
p | 318 | kernel/sched.c | struct task_struct * p; |
p | 323 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 324 | kernel/sched.c | if ((p->state == TASK_UNINTERRUPTIBLE) || |
p | 325 | kernel/sched.c | (p->state == TASK_INTERRUPTIBLE)) { |
p | 326 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 327 | kernel/sched.c | if (p->counter > current->counter) |
p | 345 | kernel/sched.c | struct task_struct * p; |
p | 350 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 351 | kernel/sched.c | if (p->state == TASK_INTERRUPTIBLE) { |
p | 352 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 353 | kernel/sched.c | if (p->counter > current->counter) |
p | 381 | kernel/sched.c | static inline void __sleep_on(struct wait_queue **p, int state) |
p | 386 | kernel/sched.c | if (!p) |
p | 391 | kernel/sched.c | add_wait_queue(p, &wait); |
p | 395 | kernel/sched.c | remove_wait_queue(p, &wait); |
p | 399 | kernel/sched.c | void interruptible_sleep_on(struct wait_queue **p) |
p | 401 | kernel/sched.c | __sleep_on(p,TASK_INTERRUPTIBLE); |
p | 404 | kernel/sched.c | void sleep_on(struct wait_queue **p) |
p | 406 | kernel/sched.c | __sleep_on(p,TASK_UNINTERRUPTIBLE); |
p | 414 | kernel/sched.c | struct timer_list ** p; |
p | 419 | kernel/sched.c | p = &next_timer; |
p | 422 | kernel/sched.c | while (*p) { |
p | 423 | kernel/sched.c | if ((*p)->expires > timer->expires) { |
p | 424 | kernel/sched.c | (*p)->expires -= timer->expires; |
p | 425 | kernel/sched.c | timer->next = *p; |
p | 428 | kernel/sched.c | timer->expires -= (*p)->expires; |
p | 429 | kernel/sched.c | p = &(*p)->next; |
p | 431 | kernel/sched.c | *p = timer; |
p | 439 | kernel/sched.c | struct timer_list **p; |
p | 441 | kernel/sched.c | p = &next_timer; |
p | 444 | kernel/sched.c | while (*p) { |
p | 445 | kernel/sched.c | if (*p == timer) { |
p | 446 | kernel/sched.c | if ((*p = timer->next) != NULL) |
p | 447 | kernel/sched.c | (*p)->expires += timer->expires; |
p | 452 | kernel/sched.c | expires += (*p)->expires; |
p | 453 | kernel/sched.c | p = &(*p)->next; |
p | 475 | kernel/sched.c | struct task_struct **p; |
p | 478 | kernel/sched.c | for(p = &LAST_TASK; p > &FIRST_TASK; --p) |
p | 479 | kernel/sched.c | if (*p && ((*p)->state == TASK_RUNNING || |
p | 480 | kernel/sched.c | (*p)->state == TASK_UNINTERRUPTIBLE || |
p | 481 | kernel/sched.c | (*p)->state == TASK_SWAPPING)) |
p | 777 | kernel/sched.c | static void show_task(int nr,struct task_struct * p) |
p | 782 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
p | 783 | kernel/sched.c | if (((unsigned) p->state) < sizeof(stat_nam)/sizeof(char *)) |
p | 784 | kernel/sched.c | printk(stat_nam[p->state]); |
p | 787 | kernel/sched.c | if (p == current) |
p | 790 | kernel/sched.c | printk(" %08lX ", ((unsigned long *)p->tss.esp)[3]); |
p | 792 | kernel/sched.c | if (((unsigned long *)p->kernel_stack_page)[free]) |
p | 795 | kernel/sched.c | printk("%5lu %5d %6d ", free << 2, p->pid, p->p_pptr->pid); |
p | 796 | kernel/sched.c | if (p->p_cptr) |
p | 797 | kernel/sched.c | printk("%5d ", p->p_cptr->pid); |
p | 800 | kernel/sched.c | if (p->p_ysptr) |
p | 801 | kernel/sched.c | printk("%7d", p->p_ysptr->pid); |
p | 804 | kernel/sched.c | if (p->p_osptr) |
p | 805 | kernel/sched.c | printk(" %5d\n", p->p_osptr->pid); |
p | 824 | kernel/sched.c | struct desc_struct * p; |
p | 832 | kernel/sched.c | p = gdt+2+FIRST_TSS_ENTRY; |
p | 835 | kernel/sched.c | p->a=p->b=0; |
p | 836 | kernel/sched.c | p++; |
p | 837 | kernel/sched.c | p->a=p->b=0; |
p | 838 | kernel/sched.c | p++; |
p | 142 | kernel/signal.c | struct sigaction *p; |
p | 144 | kernel/signal.c | p = signum - 1 + current->sigaction; |
p | 145 | kernel/signal.c | if (p->sa_handler == SIG_IGN) { |
p | 151 | kernel/signal.c | if (p->sa_handler == SIG_DFL) { |
p | 180 | kernel/signal.c | struct sigaction new_sa, *p; |
p | 184 | kernel/signal.c | p = signum - 1 + current->sigaction; |
p | 203 | kernel/signal.c | memcpy_tofs(oldaction, p, sizeof(struct sigaction)); |
p | 206 | kernel/signal.c | *p = new_sa; |
p | 33 | kernel/sys.c | static int proc_sel(struct task_struct *p, int which, int who) |
p | 37 | kernel/sys.c | if (!who && p == current) |
p | 39 | kernel/sys.c | return(p->pid == who); |
p | 43 | kernel/sys.c | return(p->pgrp == who); |
p | 47 | kernel/sys.c | return(p->uid == who); |
p | 54 | kernel/sys.c | struct task_struct **p; |
p | 64 | kernel/sys.c | for(p = &LAST_TASK; p > &FIRST_TASK; --p) { |
p | 65 | kernel/sys.c | if (!*p || !proc_sel(*p, which, who)) |
p | 67 | kernel/sys.c | if ((*p)->uid != current->euid && |
p | 68 | kernel/sys.c | (*p)->uid != current->uid && !suser()) { |
p | 74 | kernel/sys.c | if (priority > (*p)->priority && !suser()) |
p | 77 | kernel/sys.c | (*p)->priority = priority; |
p | 84 | kernel/sys.c | struct task_struct **p; |
p | 90 | kernel/sys.c | for(p = &LAST_TASK; p > &FIRST_TASK; --p) { |
p | 91 | kernel/sys.c | if (!*p || !proc_sel(*p, which, who)) |
p | 93 | kernel/sys.c | if ((*p)->priority > max_prio) |
p | 94 | kernel/sys.c | max_prio = (*p)->priority; |
p | 475 | kernel/sys.c | struct task_struct * p; |
p | 483 | kernel/sys.c | for_each_task(p) { |
p | 484 | kernel/sys.c | if (p->pid == pid) |
p | 490 | kernel/sys.c | if (p->p_pptr == current || p->p_opptr == current) { |
p | 491 | kernel/sys.c | if (p->session != current->session) |
p | 493 | kernel/sys.c | if (p->did_exec) |
p | 495 | kernel/sys.c | } else if (p != current) |
p | 497 | kernel/sys.c | if (p->leader) |
p | 510 | kernel/sys.c | p->pgrp = pgid; |
p | 516 | kernel/sys.c | struct task_struct * p; |
p | 520 | kernel/sys.c | for_each_task(p) { |
p | 521 | kernel/sys.c | if (p->pid == pid) |
p | 522 | kernel/sys.c | return p->pgrp; |
p | 731 | kernel/sys.c | int getrusage(struct task_struct *p, int who, struct rusage *ru) |
p | 743 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime); |
p | 744 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime); |
p | 745 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime); |
p | 746 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime); |
p | 747 | kernel/sys.c | r.ru_minflt = p->min_flt; |
p | 748 | kernel/sys.c | r.ru_majflt = p->maj_flt; |
p | 751 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->cutime); |
p | 752 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->cutime); |
p | 753 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->cstime); |
p | 754 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->cstime); |
p | 755 | kernel/sys.c | r.ru_minflt = p->cmin_flt; |
p | 756 | kernel/sys.c | r.ru_majflt = p->cmaj_flt; |
p | 759 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime + p->cutime); |
p | 760 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime + p->cutime); |
p | 761 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime + p->cstime); |
p | 762 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime + p->cstime); |
p | 763 | kernel/sys.c | r.ru_minflt = p->min_flt + p->cmin_flt; |
p | 764 | kernel/sys.c | r.ru_majflt = p->maj_flt + p->cmaj_flt; |
p | 59 | mm/kmalloc.c | #define BH(p) ((struct block_header *)(p)) |
p | 73 | mm/kmalloc.c | #define PAGE_DESC(p) ((struct page_descriptor *)(((unsigned long)(p)) & PAGE_MASK)) |
p | 152 | mm/kmalloc.c | struct block_header *p; |
p | 188 | mm/kmalloc.c | (p = page->firstfree)) |
p | 190 | mm/kmalloc.c | if (p->bh_flags == MF_FREE) |
p | 192 | mm/kmalloc.c | page->firstfree = p->bh_next; |
p | 203 | mm/kmalloc.c | p->bh_flags = MF_USED; /* As of now this block is officially in use */ |
p | 204 | mm/kmalloc.c | p->bh_length = size; |
p | 205 | mm/kmalloc.c | return p+1; /* Pointer arithmetic: increments past header */ |
p | 207 | mm/kmalloc.c | printk ("Problem: block on freelist at %08lx isn't free.\n",(long)p); |
p | 233 | mm/kmalloc.c | for (i=NBLOCKS(order),p=BH (page+1);i > 1;i--,p=p->bh_next) |
p | 235 | mm/kmalloc.c | p->bh_flags = MF_FREE; |
p | 236 | mm/kmalloc.c | p->bh_next = BH ( ((long)p)+sz); |
p | 239 | mm/kmalloc.c | p->bh_flags = MF_FREE; |
p | 240 | mm/kmalloc.c | p->bh_next = NULL; |
p | 279 | mm/kmalloc.c | register struct block_header *p=((struct block_header *)ptr) -1; |
p | 282 | mm/kmalloc.c | page = PAGE_DESC (p); |
p | 287 | mm/kmalloc.c | (p->bh_flags != MF_USED)) |
p | 290 | mm/kmalloc.c | p, page->next, page->order); |
p | 294 | mm/kmalloc.c | size != p->bh_length) |
p | 297 | mm/kmalloc.c | p,size,p->bh_length); |
p | 300 | mm/kmalloc.c | size = p->bh_length; |
p | 301 | mm/kmalloc.c | p->bh_flags = MF_FREE; /* As of now this block is officially free */ |
p | 304 | mm/kmalloc.c | p->bh_next = page->firstfree; |
p | 305 | mm/kmalloc.c | page->firstfree = p; |
p | 68 | mm/memory.c | #define CODE_SPACE(addr,p) ((addr) < (p)->end_code) |
p | 694 | mm/memory.c | struct task_struct * p, unsigned long error_code, unsigned long newpage) |
p | 701 | mm/memory.c | from_page = (unsigned long)PAGE_DIR_OFFSET(p->tss.cr3,address); |
p | 756 | mm/memory.c | struct task_struct ** p; |
p | 760 | mm/memory.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 761 | mm/memory.c | if (!*p) |
p | 763 | mm/memory.c | if (tsk == *p) |
p | 765 | mm/memory.c | if (inode != (*p)->executable) { |
p | 771 | mm/memory.c | for (mpnt = (*p)->mmap; mpnt; mpnt = mpnt->vm_next) { |
p | 782 | mm/memory.c | if (try_to_share(address,tsk,*p,error_code,newpage)) |
p | 794 | mm/memory.c | unsigned long *p; |
p | 796 | mm/memory.c | p = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
p | 797 | mm/memory.c | if (PAGE_PRESENT & *p) |
p | 798 | mm/memory.c | return *p; |
p | 799 | mm/memory.c | if (*p) { |
p | 801 | mm/memory.c | *p = 0; |
p | 804 | mm/memory.c | p = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
p | 805 | mm/memory.c | if (PAGE_PRESENT & *p) { |
p | 807 | mm/memory.c | return *p; |
p | 809 | mm/memory.c | if (*p) { |
p | 811 | mm/memory.c | *p = 0; |
p | 814 | mm/memory.c | *p = page | PAGE_TABLE; |
p | 815 | mm/memory.c | return *p; |
p | 818 | mm/memory.c | *p = BAD_PAGETABLE | PAGE_TABLE; |
p | 1056 | mm/memory.c | unsigned short * p; |
p | 1066 | mm/memory.c | p = mem_map + tmp; |
p | 1067 | mm/memory.c | start_mem = (unsigned long) p; |
p | 1068 | mm/memory.c | while (p > mem_map) |
p | 1069 | mm/memory.c | *--p = MAP_PAGE_RESERVED; |
p | 61 | mm/swap.c | struct swap_info_struct * p; |
p | 68 | mm/swap.c | p = &swap_info[type]; |
p | 70 | mm/swap.c | if (offset >= p->max) { |
p | 74 | mm/swap.c | if (!(p->flags & SWP_USED)) { |
p | 78 | mm/swap.c | while (set_bit(offset,p->swap_lockmap)) |
p | 84 | mm/swap.c | if (p->swap_device) { |
p | 85 | mm/swap.c | ll_rw_page(rw,p->swap_device,offset,buf); |
p | 86 | mm/swap.c | } else if (p->swap_file) { |
p | 91 | mm/swap.c | block = offset << (12 - p->swap_file->i_sb->s_blocksize_bits); |
p | 93 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=p->swap_file->i_sb->s_blocksize) |
p | 94 | mm/swap.c | if (!(zones[i] = bmap(p->swap_file,block++))) { |
p | 98 | mm/swap.c | ll_rw_swap_file(rw,p->swap_file->i_dev, zones, i,buf); |
p | 101 | mm/swap.c | if (offset && !clear_bit(offset,p->swap_lockmap)) |
p | 108 | mm/swap.c | struct swap_info_struct * p; |
p | 111 | mm/swap.c | p = swap_info; |
p | 112 | mm/swap.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) { |
p | 113 | mm/swap.c | if ((p->flags & SWP_WRITEOK) != SWP_WRITEOK) |
p | 115 | mm/swap.c | for (offset = p->lowest_bit; offset <= p->highest_bit ; offset++) { |
p | 116 | mm/swap.c | if (p->swap_map[offset]) |
p | 118 | mm/swap.c | p->swap_map[offset] = 1; |
p | 120 | mm/swap.c | if (offset == p->highest_bit) |
p | 121 | mm/swap.c | p->highest_bit--; |
p | 122 | mm/swap.c | p->lowest_bit = offset; |
p | 131 | mm/swap.c | struct swap_info_struct * p; |
p | 144 | mm/swap.c | p = type + swap_info; |
p | 145 | mm/swap.c | if (offset >= p->max) { |
p | 149 | mm/swap.c | if (!p->swap_map[offset]) { |
p | 153 | mm/swap.c | p->swap_map[offset]++; |
p | 159 | mm/swap.c | struct swap_info_struct * p; |
p | 171 | mm/swap.c | p = & swap_info[type]; |
p | 173 | mm/swap.c | if (offset >= p->max) { |
p | 177 | mm/swap.c | if (!(p->flags & SWP_USED)) { |
p | 181 | mm/swap.c | while (set_bit(offset,p->swap_lockmap)) |
p | 183 | mm/swap.c | if (offset < p->lowest_bit) |
p | 184 | mm/swap.c | p->lowest_bit = offset; |
p | 185 | mm/swap.c | if (offset > p->highest_bit) |
p | 186 | mm/swap.c | p->highest_bit = offset; |
p | 187 | mm/swap.c | if (!p->swap_map[offset]) |
p | 190 | mm/swap.c | if (!--p->swap_map[offset]) |
p | 192 | mm/swap.c | if (!clear_bit(offset,p->swap_lockmap)) |
p | 313 | mm/swap.c | struct task_struct *p; |
p | 331 | mm/swap.c | p = task[swap_task]; |
p | 332 | mm/swap.c | if(p && p->swappable && p->rss) |
p | 341 | mm/swap.c | if(! p -> swap_cnt) { |
p | 342 | mm/swap.c | p->dec_flt = (p->dec_flt * 3) / 4 + p->maj_flt - p->old_maj_flt; |
p | 343 | mm/swap.c | p->old_maj_flt = p->maj_flt; |
p | 345 | mm/swap.c | if(p->dec_flt >= SWAP_RATIO / SWAP_MIN) { |
p | 346 | mm/swap.c | p->dec_flt = SWAP_RATIO / SWAP_MIN; |
p | 347 | mm/swap.c | p->swap_cnt = SWAP_MIN; |
p | 348 | mm/swap.c | } else if(p->dec_flt <= SWAP_RATIO / SWAP_MAX) |
p | 349 | mm/swap.c | p->swap_cnt = SWAP_MAX; |
p | 351 | mm/swap.c | p->swap_cnt = SWAP_RATIO / p->dec_flt; |
p | 357 | mm/swap.c | for(table = p->swap_table; table < 1024; table++) { |
p | 358 | mm/swap.c | pg_table = ((unsigned long *) p->tss.cr3)[table]; |
p | 366 | mm/swap.c | ((unsigned long *) p->tss.cr3)[table] = 0; |
p | 374 | mm/swap.c | for(page = p->swap_page; page < 1024; page++) { |
p | 380 | mm/swap.c | p->rss--; |
p | 382 | mm/swap.c | p->swap_table = table; |
p | 383 | mm/swap.c | p->swap_page = page + 1; |
p | 384 | mm/swap.c | if((--p->swap_cnt) == 0) |
p | 389 | mm/swap.c | p->rss--; |
p | 394 | mm/swap.c | p->swap_page = 0; |
p | 401 | mm/swap.c | p->swap_table = 0; |
p | 423 | mm/swap.c | struct task_struct * p; |
p | 433 | mm/swap.c | p = task[swap_task]; |
p | 434 | mm/swap.c | if (!p || !p->swappable) { |
p | 444 | mm/swap.c | pg_table = ((unsigned long *) p->tss.cr3)[swap_table]; |
p | 452 | mm/swap.c | ((unsigned long *) p->tss.cr3)[swap_table] = 0; |
p | 465 | mm/swap.c | case 1: p->rss--; return 1; |
p | 466 | mm/swap.c | default: p->rss--; |
p | 626 | mm/swap.c | struct task_struct *p; |
p | 635 | mm/swap.c | p = task[nr]; |
p | 636 | mm/swap.c | if (!p) |
p | 639 | mm/swap.c | ppage = pgt + ((unsigned long *) p->tss.cr3); |
p | 664 | mm/swap.c | ++p->rss; |
p | 678 | mm/swap.c | struct swap_info_struct * p; |
p | 688 | mm/swap.c | p = swap_info; |
p | 689 | mm/swap.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) { |
p | 690 | mm/swap.c | if ((p->flags & SWP_WRITEOK) != SWP_WRITEOK) |
p | 692 | mm/swap.c | if (p->swap_file) { |
p | 693 | mm/swap.c | if (p->swap_file == inode) |
p | 698 | mm/swap.c | if (p->swap_device == inode->i_rdev) |
p | 705 | mm/swap.c | p->flags = SWP_USED; |
p | 708 | mm/swap.c | p->flags = SWP_WRITEOK; |
p | 711 | mm/swap.c | nr_swap_pages -= p->pages; |
p | 712 | mm/swap.c | iput(p->swap_file); |
p | 713 | mm/swap.c | p->swap_file = NULL; |
p | 714 | mm/swap.c | p->swap_device = 0; |
p | 715 | mm/swap.c | vfree(p->swap_map); |
p | 716 | mm/swap.c | p->swap_map = NULL; |
p | 717 | mm/swap.c | free_page((long) p->swap_lockmap); |
p | 718 | mm/swap.c | p->swap_lockmap = NULL; |
p | 719 | mm/swap.c | p->flags = 0; |
p | 730 | mm/swap.c | struct swap_info_struct * p; |
p | 738 | mm/swap.c | p = swap_info; |
p | 739 | mm/swap.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) |
p | 740 | mm/swap.c | if (!(p->flags & SWP_USED)) |
p | 746 | mm/swap.c | p->flags = SWP_USED; |
p | 747 | mm/swap.c | p->swap_file = NULL; |
p | 748 | mm/swap.c | p->swap_device = 0; |
p | 749 | mm/swap.c | p->swap_map = NULL; |
p | 750 | mm/swap.c | p->swap_lockmap = NULL; |
p | 751 | mm/swap.c | p->lowest_bit = 0; |
p | 752 | mm/swap.c | p->highest_bit = 0; |
p | 753 | mm/swap.c | p->max = 1; |
p | 762 | mm/swap.c | p->swap_device = swap_inode->i_rdev; |
p | 765 | mm/swap.c | if (!p->swap_device) |
p | 771 | mm/swap.c | if (p->swap_device == swap_info[i].swap_device) |
p | 775 | mm/swap.c | p->swap_file = swap_inode; |
p | 778 | mm/swap.c | p->swap_lockmap = (unsigned char *) get_free_page(GFP_USER); |
p | 779 | mm/swap.c | if (!p->swap_lockmap) { |
p | 784 | mm/swap.c | read_swap_page(SWP_ENTRY(type,0), (char *) p->swap_lockmap); |
p | 785 | mm/swap.c | if (memcmp("SWAP-SPACE",p->swap_lockmap+4086,10)) { |
p | 790 | mm/swap.c | memset(p->swap_lockmap+PAGE_SIZE-10,0,10); |
p | 792 | mm/swap.c | p->lowest_bit = 0; |
p | 793 | mm/swap.c | p->highest_bit = 0; |
p | 795 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) { |
p | 796 | mm/swap.c | if (!p->lowest_bit) |
p | 797 | mm/swap.c | p->lowest_bit = i; |
p | 798 | mm/swap.c | p->highest_bit = i; |
p | 799 | mm/swap.c | p->max = i+1; |
p | 808 | mm/swap.c | p->swap_map = (unsigned char *) vmalloc(p->max); |
p | 809 | mm/swap.c | if (!p->swap_map) { |
p | 813 | mm/swap.c | for (i = 1 ; i < p->max ; i++) { |
p | 814 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) |
p | 815 | mm/swap.c | p->swap_map[i] = 0; |
p | 817 | mm/swap.c | p->swap_map[i] = 0x80; |
p | 819 | mm/swap.c | p->swap_map[0] = 0x80; |
p | 820 | mm/swap.c | memset(p->swap_lockmap,0,PAGE_SIZE); |
p | 821 | mm/swap.c | p->flags = SWP_WRITEOK; |
p | 822 | mm/swap.c | p->pages = j; |
p | 827 | mm/swap.c | free_page((long) p->swap_lockmap); |
p | 828 | mm/swap.c | vfree(p->swap_map); |
p | 829 | mm/swap.c | iput(p->swap_file); |
p | 830 | mm/swap.c | p->swap_device = 0; |
p | 831 | mm/swap.c | p->swap_file = NULL; |
p | 832 | mm/swap.c | p->swap_map = NULL; |
p | 833 | mm/swap.c | p->swap_lockmap = NULL; |
p | 834 | mm/swap.c | p->flags = 0; |
p | 39 | mm/vmalloc.c | struct task_struct * p; |
p | 41 | mm/vmalloc.c | p = &init_task; |
p | 43 | mm/vmalloc.c | ((unsigned long *) p->tss.cr3)[dindex] = value; |
p | 44 | mm/vmalloc.c | p = p->next_task; |
p | 45 | mm/vmalloc.c | } while (p != &init_task); |
p | 130 | mm/vmalloc.c | struct vm_struct **p, *tmp; |
p | 138 | mm/vmalloc.c | for (p = &vmlist ; (tmp = *p) ; p = &tmp->next) { |
p | 140 | mm/vmalloc.c | *p = tmp->next; |
p | 152 | mm/vmalloc.c | struct vm_struct **p, *tmp, *area; |
p | 163 | mm/vmalloc.c | for (p = &vmlist; (tmp = *p) ; p = &tmp->next) { |
p | 169 | mm/vmalloc.c | area->next = *p; |
p | 170 | mm/vmalloc.c | *p = area; |
p | 180 | mm/vmalloc.c | struct vm_struct **p, *tmp; |
p | 184 | mm/vmalloc.c | for (p = &vmlist; (tmp = *p) ; p = &tmp->next) { |
p | 167 | net/inet/packet.c | struct packet_type *p; |
p | 169 | net/inet/packet.c | p = (struct packet_type *) kmalloc(sizeof(*p), GFP_KERNEL); |
p | 170 | net/inet/packet.c | if (p == NULL) return(-ENOMEM); |
p | 172 | net/inet/packet.c | p->func = packet_rcv; |
p | 173 | net/inet/packet.c | p->type = sk->num; |
p | 174 | net/inet/packet.c | p->data = (void *)sk; |
p | 175 | net/inet/packet.c | dev_add_pack(p); |
p | 178 | net/inet/packet.c | sk->pair = (struct sock *)p; |
p | 89 | net/inet/protocol.c | struct inet_protocol *p; |
p | 93 | net/inet/protocol.c | for (p = inet_protos[hash] ; p != NULL; p=p->next) { |
p | 94 | net/inet/protocol.c | DPRINTF((DBG_PROTO, "trying protocol %d\n", p->protocol)); |
p | 95 | net/inet/protocol.c | if (p->protocol == prot) return((struct inet_protocol *) p); |
p | 127 | net/inet/protocol.c | struct inet_protocol *p; |
p | 137 | net/inet/protocol.c | p = (struct inet_protocol *) inet_protos[hash]; |
p | 138 | net/inet/protocol.c | while(p != NULL) { |
p | 144 | net/inet/protocol.c | if (p->next != NULL && p->next == prot) { |
p | 149 | net/inet/protocol.c | if (p->copy == 0 && lp != NULL) lp->copy = 0; |
p | 150 | net/inet/protocol.c | p->next = prot->next; |
p | 154 | net/inet/protocol.c | if (p->next != NULL && p->next->protocol == prot->protocol) { |
p | 155 | net/inet/protocol.c | lp = p; |
p | 158 | net/inet/protocol.c | p = (struct inet_protocol *) p->next; |
p | 289 | net/inet/raw.c | struct inet_protocol *p; |
p | 291 | net/inet/raw.c | p = (struct inet_protocol *) kmalloc(sizeof (*p), GFP_KERNEL); |
p | 292 | net/inet/raw.c | if (p == NULL) return(-ENOMEM); |
p | 294 | net/inet/raw.c | p->handler = raw_rcv; |
p | 295 | net/inet/raw.c | p->protocol = sk->protocol; |
p | 296 | net/inet/raw.c | p->data = (void *)sk; |
p | 297 | net/inet/raw.c | p->err_handler = raw_err; |
p | 298 | net/inet/raw.c | p->name="USER"; |
p | 299 | net/inet/raw.c | p->frag_handler = NULL; /* For now */ |
p | 300 | net/inet/raw.c | inet_add_protocol(p); |
p | 303 | net/inet/raw.c | sk->pair = (struct sock *)p; |
p | 1863 | net/inet/sock.c | struct inet_protocol *p; |
p | 1886 | net/inet/sock.c | for(p = inet_protocol_base; p != NULL;) { |
p | 1889 | net/inet/sock.c | tmp = (struct inet_protocol *) p->next; |
p | 1890 | net/inet/sock.c | inet_add_protocol(p); |
p | 1891 | net/inet/sock.c | printk("%s%s",p->name,tmp?", ":"\n"); |
p | 1892 | net/inet/sock.c | p = tmp; |
p | 48 | net/inet/utils.c | register char *p; |
p | 50 | net/inet/utils.c | p = (char *) ∈ |
p | 52 | net/inet/utils.c | (p[0] & 255), (p[1] & 255), (p[2] & 255), (p[3] & 255)); |
p | 216 | zBoot/gzip.h | #define SH(p) ((ush)(uch)((p)[0]) | ((ush)(uch)((p)[1]) << 8)) |
p | 217 | zBoot/gzip.h | #define LG(p) ((ulg)(SH(p)) | ((ulg)(SH((p)+2)) << 16)) |
p | 122 | zBoot/inflate.c | register unsigned *p; /* pointer into c[], b[], or v[] */ |
p | 137 | zBoot/inflate.c | p = b; i = n; |
p | 139 | zBoot/inflate.c | c[*p++]++; /* assume all entries <= BMAX */ |
p | 180 | zBoot/inflate.c | p = c + 1; xp = x + 2; |
p | 182 | zBoot/inflate.c | *xp++ = (j += *p++); |
p | 188 | zBoot/inflate.c | p = b; i = 0; |
p | 190 | zBoot/inflate.c | if ((j = *p++) != 0) |
p | 198 | zBoot/inflate.c | p = v; /* grab values in bit order */ |
p | 272 | zBoot/inflate.c | if (p >= v + n) |
p | 274 | zBoot/inflate.c | else if (*p < s) |
p | 276 | zBoot/inflate.c | r.e = (uch)(*p < 256 ? 16 : 15); /* 256 is end-of-block code */ |
p | 277 | zBoot/inflate.c | r.v.n = *p++; /* simple code is just the value */ |
p | 281 | zBoot/inflate.c | r.e = (uch)e[*p - s]; /* non-simple--look up in lists */ |
p | 282 | zBoot/inflate.c | r.v.n = d[*p++ - s]; |
p | 321 | zBoot/inflate.c | register struct huft *p, *q; |
p | 325 | zBoot/inflate.c | p = t; |
p | 326 | zBoot/inflate.c | while (p != (struct huft *)NULL) |
p | 328 | zBoot/inflate.c | q = (--p)->v.t; |
p | 329 | zBoot/inflate.c | free(p); |
p | 330 | zBoot/inflate.c | p = q; |
p | 83 | zBoot/misc.c | void *p; |
p | 90 | zBoot/misc.c | p = (void *)free_mem_ptr; |
p | 96 | zBoot/misc.c | if (p == NULL) error("malloc = NULL\n"); |
p | 97 | zBoot/misc.c | return p; |
p | 260 | zBoot/misc.c | static int p[] = {0,1,2,4,5,7,8,10,11,12,16,22,23,26}; |
p | 264 | zBoot/misc.c | for (i = 0; i < sizeof(p)/sizeof(int); i++) |
p | 265 | zBoot/misc.c | e |= 1L << (31 - p[i]); |