tag | line | file | source code |
prot | 87 | drivers/char/mem.c | unsigned long addr, size_t len, int prot, unsigned long off) |
prot | 93 | drivers/char/mem.c | if (remap_page_range(addr, off, len, prot)) |
prot | 103 | drivers/char/mem.c | mpnt->vm_page_prot = prot; |
prot | 178 | drivers/char/mem.c | unsigned long addr, size_t len, int prot, unsigned long off) |
prot | 182 | drivers/char/mem.c | if (prot & PAGE_RW) |
prot | 184 | drivers/char/mem.c | if (zeromap_page_range(addr, len, prot)) |
prot | 197 | drivers/char/mem.c | mpnt->vm_page_prot = prot; |
prot | 835 | fs/buffer.c | unsigned long bread_page(unsigned long address, dev_t dev, int b[], int size, int prot) |
prot | 841 | fs/buffer.c | if (!(prot & PAGE_RW)) { |
prot | 25 | fs/nfs/file.c | unsigned long addr, size_t len, int prot, unsigned long off); |
prot | 31 | fs/nfs/mmap.c | unsigned long address,int prot); |
prot | 52 | fs/nfs/mmap.c | unsigned long addr, size_t len, int prot, unsigned long off) |
prot | 56 | fs/nfs/mmap.c | if (prot & PAGE_RW) /* only PAGE_COW or read-only supported now */ |
prot | 75 | fs/nfs/mmap.c | mpnt->vm_page_prot = prot; |
prot | 363 | fs/proc/array.c | int prot = map->vm_page_prot; |
prot | 377 | fs/proc/array.c | if ((prot & PAGE_READONLY) == PAGE_READONLY) |
prot | 379 | fs/proc/array.c | if (prot & (PAGE_COW|PAGE_RW)) { |
prot | 381 | fs/proc/array.c | flags = prot & PAGE_COW ? MAP_PRIVATE : MAP_SHARED; |
prot | 385 | include/linux/fs.h | extern unsigned long bread_page(unsigned long addr,dev_t dev,int b[],int size,int prot); |
prot | 129 | include/linux/mm.h | unsigned long prot, unsigned long flags, unsigned long off); |
prot | 122 | include/linux/nfs_fs.h | unsigned long addr, size_t len, int prot, unsigned long off); |
prot | 471 | mm/memory.c | unsigned long address,int prot) |
prot | 475 | mm/memory.c | if ((prot & (PAGE_MASK|PAGE_PRESENT)) != PAGE_PRESENT) |
prot | 476 | mm/memory.c | printk("put_page: prot = %08x\n",prot); |
prot | 496 | mm/memory.c | *page_table = page | prot; |
prot | 554 | mm/memory.c | unsigned long *pde, pte, old_page, prot; |
prot | 574 | mm/memory.c | prot = (old_page & ~PAGE_MASK) | PAGE_RW; |
prot | 581 | mm/memory.c | *(unsigned long *) pte = new_page | prot; |
prot | 588 | mm/memory.c | *(unsigned long *) pte = BAD_PAGE | prot; |
prot | 1157 | mm/memory.c | int prot = area->vm_page_prot; |
prot | 1178 | mm/memory.c | prot |= PAGE_RW | PAGE_DIRTY; |
prot | 1179 | mm/memory.c | page = bread_page(page, inode->i_dev, nr, inode->i_sb->s_blocksize, prot); |
prot | 1181 | mm/memory.c | if (!(prot & PAGE_RW)) { |
prot | 1185 | mm/memory.c | if (put_page(area->vm_task,page,address,prot)) |
prot | 43 | mm/mmap.c | unsigned long prot, unsigned long flags, unsigned long off) |
prot | 62 | mm/mmap.c | if ((prot & PROT_WRITE) && !(file->f_mode & 2)) |
prot | 112 | mm/mmap.c | if (prot & (PROT_READ | PROT_EXEC)) |
prot | 114 | mm/mmap.c | if (prot & PROT_WRITE) |
prot | 227 | mm/mmap.c | asmlinkage int sys_mprotect(unsigned long addr, size_t len, unsigned long prot) |
prot | 309 | mm/mmap.c | unsigned long addr, size_t len, int prot, unsigned long off) |
prot | 315 | mm/mmap.c | if (prot & PAGE_RW) /* only PAGE_COW or read-only supported right now */ |
prot | 339 | mm/mmap.c | mpnt->vm_page_prot = prot; |
prot | 164 | net/inet/datagram.c | if (sk->prot->wspace(sk) >= MIN_WRITE_SPACE) |
prot | 1413 | net/inet/ip.c | struct proto *prot; |
prot | 1416 | net/inet/ip.c | prot = sk->prot; |
prot | 1456 | net/inet/ip.c | sk->prot->retransmits ++; |
prot | 121 | net/inet/packet.c | skb = (struct sk_buff *) sk->prot->wmalloc(sk, len+sizeof(*skb), 0, GFP_KERNEL); |
prot | 86 | net/inet/protocol.c | inet_get_protocol(unsigned char prot) |
prot | 91 | net/inet/protocol.c | DPRINTF((DBG_PROTO, "get_protocol (%d)\n ", prot)); |
prot | 92 | net/inet/protocol.c | hash = prot & (MAX_INET_PROTOS - 1); |
prot | 95 | net/inet/protocol.c | if (p->protocol == prot) return((struct inet_protocol *) p); |
prot | 102 | net/inet/protocol.c | inet_add_protocol(struct inet_protocol *prot) |
prot | 107 | net/inet/protocol.c | hash = prot->protocol & (MAX_INET_PROTOS - 1); |
prot | 108 | net/inet/protocol.c | prot ->next = inet_protos[hash]; |
prot | 109 | net/inet/protocol.c | inet_protos[hash] = prot; |
prot | 110 | net/inet/protocol.c | prot->copy = 0; |
prot | 113 | net/inet/protocol.c | p2 = (struct inet_protocol *) prot->next; |
prot | 115 | net/inet/protocol.c | if (p2->protocol == prot->protocol) { |
prot | 116 | net/inet/protocol.c | prot->copy = 1; |
prot | 119 | net/inet/protocol.c | p2 = (struct inet_protocol *) prot->next; |
prot | 125 | net/inet/protocol.c | inet_del_protocol(struct inet_protocol *prot) |
prot | 131 | net/inet/protocol.c | hash = prot->protocol & (MAX_INET_PROTOS - 1); |
prot | 132 | net/inet/protocol.c | if (prot == inet_protos[hash]) { |
prot | 144 | net/inet/protocol.c | if (p->next != NULL && p->next == prot) { |
prot | 150 | net/inet/protocol.c | p->next = prot->next; |
prot | 154 | net/inet/protocol.c | if (p->next != NULL && p->next->protocol == prot->protocol) { |
prot | 55 | net/inet/protocol.h | extern void inet_add_protocol(struct inet_protocol *prot); |
prot | 56 | net/inet/protocol.h | extern int inet_del_protocol(struct inet_protocol *prot); |
prot | 184 | net/inet/raw.c | skb = (struct sk_buff *) sk->prot->wmalloc(sk, |
prot | 185 | net/inet/raw.c | len+sizeof(*skb) + sk->prot->max_header, |
prot | 208 | net/inet/raw.c | skb->mem_len = len + sizeof(*skb) +sk->prot->max_header; |
prot | 214 | net/inet/raw.c | tmp = sk->prot->build_header(skb, sk->saddr, |
prot | 249 | net/inet/raw.c | sk->prot->queue_xmit(sk, dev, skb, 1); |
prot | 389 | net/inet/skbuff.c | skb->sk->prot->rfree(skb->sk, skb->mem_addr, skb->mem_len); |
prot | 391 | net/inet/skbuff.c | skb->sk->prot->wfree(skb->sk, skb->mem_addr, skb->mem_len); |
prot | 120 | net/inet/sock.c | printk(" prot = %p\n", sk->prot); |
prot | 147 | net/inet/sock.c | sk_inuse(struct proto *prot, int num) |
prot | 151 | net/inet/sock.c | for(sk = prot->sock_array[num & (SOCK_ARRAY_SIZE -1 )]; |
prot | 161 | net/inet/sock.c | get_new_socknum(struct proto *prot, unsigned short base) |
prot | 182 | net/inet/sock.c | sk = prot->sock_array[(i+base+1) &(SOCK_ARRAY_SIZE -1)]; |
prot | 200 | net/inet/sock.c | while(sk_inuse(prot, base +best+1)) { |
prot | 223 | net/inet/sock.c | if (sk->prot->sock_array[num] == NULL) { |
prot | 224 | net/inet/sock.c | sk->prot->sock_array[num] = sk; |
prot | 239 | net/inet/sock.c | sk1 = sk->prot->sock_array[num]; |
prot | 243 | net/inet/sock.c | sk->next = sk->prot->sock_array[num]; |
prot | 244 | net/inet/sock.c | sk->prot->sock_array[num] = sk; |
prot | 274 | net/inet/sock.c | if (!sk1->prot) { |
prot | 281 | net/inet/sock.c | sk2 = sk1->prot->sock_array[sk1->num &(SOCK_ARRAY_SIZE -1)]; |
prot | 283 | net/inet/sock.c | sk1->prot->sock_array[sk1->num &(SOCK_ARRAY_SIZE -1)] = sk1->next; |
prot | 358 | net/inet/sock.c | skb->sk->prot->close(skb->sk, 0); |
prot | 416 | net/inet/sock.c | sk->pair->prot->close(sk->pair, 0); |
prot | 633 | net/inet/sock.c | if (sk->prot == &tcp_prot) val = SOCK_STREAM; |
prot | 684 | net/inet/sock.c | sk->num = get_new_socknum(sk->prot, 0); |
prot | 704 | net/inet/sock.c | struct proto *prot; |
prot | 721 | net/inet/sock.c | prot = &tcp_prot; |
prot | 731 | net/inet/sock.c | prot=&udp_prot; |
prot | 743 | net/inet/sock.c | prot = &raw_prot; |
prot | 761 | net/inet/sock.c | prot = &packet_prot; |
prot | 826 | net/inet/sock.c | sk->prot = prot; |
prot | 865 | net/inet/sock.c | if (sk->prot->init) { |
prot | 866 | net/inet/sock.c | err = sk->prot->init(sk); |
prot | 903 | net/inet/sock.c | sk->prot->close(sk,0); |
prot | 907 | net/inet/sock.c | sk->prot->close(sk, 0); |
prot | 971 | net/inet/sock.c | snum = get_new_socknum(sk->prot, 0); |
prot | 982 | net/inet/sock.c | sk->prot->sock_array[snum &(SOCK_ARRAY_SIZE -1)])); |
prot | 987 | net/inet/sock.c | for(sk2 = sk->prot->sock_array[snum & (SOCK_ARRAY_SIZE -1)]; |
prot | 1047 | net/inet/sock.c | sk->num = get_new_socknum(sk->prot, 0); |
prot | 1054 | net/inet/sock.c | if (sk->prot->connect == NULL) |
prot | 1057 | net/inet/sock.c | err = sk->prot->connect(sk, (struct sockaddr_in *)uaddr, addr_len); |
prot | 1121 | net/inet/sock.c | if (sk1->prot->accept == NULL) return(-EOPNOTSUPP); |
prot | 1128 | net/inet/sock.c | sk2 = sk1->prot->accept(sk1,flags); |
prot | 1228 | net/inet/sock.c | sk->num = get_new_socknum(sk->prot, 0); |
prot | 1233 | net/inet/sock.c | return(sk->prot->read(sk, (unsigned char *) ubuf, size, noblock,0)); |
prot | 1251 | net/inet/sock.c | sk->num = get_new_socknum(sk->prot, 0); |
prot | 1256 | net/inet/sock.c | return(sk->prot->read(sk, (unsigned char *) ubuf, size, noblock, flags)); |
prot | 1277 | net/inet/sock.c | sk->num = get_new_socknum(sk->prot, 0); |
prot | 1283 | net/inet/sock.c | return(sk->prot->write(sk, (unsigned char *) ubuf, size, noblock, 0)); |
prot | 1305 | net/inet/sock.c | sk->num = get_new_socknum(sk->prot, 0); |
prot | 1311 | net/inet/sock.c | return(sk->prot->write(sk, (unsigned char *) ubuf, size, noblock, flags)); |
prot | 1331 | net/inet/sock.c | if (sk->prot->sendto == NULL) return(-EOPNOTSUPP); |
prot | 1335 | net/inet/sock.c | sk->num = get_new_socknum(sk->prot, 0); |
prot | 1341 | net/inet/sock.c | return(sk->prot->sendto(sk, (unsigned char *) ubuf, size, noblock, flags, |
prot | 1358 | net/inet/sock.c | if (sk->prot->recvfrom == NULL) return(-EOPNOTSUPP); |
prot | 1362 | net/inet/sock.c | sk->num = get_new_socknum(sk->prot, 0); |
prot | 1368 | net/inet/sock.c | return(sk->prot->recvfrom(sk, (unsigned char *) ubuf, size, noblock, flags, |
prot | 1396 | net/inet/sock.c | if (sk->prot->shutdown) sk->prot->shutdown(sk, how); |
prot | 1412 | net/inet/sock.c | if (sk->prot->select == NULL) { |
prot | 1416 | net/inet/sock.c | return(sk->prot->select(sk, sel_type, wait)); |
prot | 1492 | net/inet/sock.c | if (!sk || !sk->prot->ioctl) return(-EINVAL); |
prot | 1493 | net/inet/sock.c | return(sk->prot->ioctl(sk, cmd, arg)); |
prot | 1606 | net/inet/sock.c | struct sock *get_sock(struct proto *prot, unsigned short num, |
prot | 1615 | net/inet/sock.c | prot, num, raddr, rnum, laddr)); |
prot | 1625 | net/inet/sock.c | for(s = prot->sock_array[hnum & (SOCK_ARRAY_SIZE - 1)]; |
prot | 1632 | net/inet/sock.c | if(prot == &udp_prot) |
prot | 1652 | net/inet/sock.c | if (!sk->prot) { |
prot | 1677 | net/inet/sock.c | if (sk->prot->rcv) sk->prot->rcv(skb, skb->dev, sk->opt, |
prot | 91 | net/inet/sock.h | struct proto *prot; |
prot | 376 | net/inet/tcp.c | if (sk->prot->wspace(sk) >= sk->mtu) { |
prot | 466 | net/inet/tcp.c | amount = sk->prot->wspace(sk); |
prot | 583 | net/inet/tcp.c | sk->prot->queue_xmit(sk, skb->dev, skb,0); |
prot | 606 | net/inet/tcp.c | buff = (struct sk_buff *) sk->prot->wmalloc(sk, MAX_ACK_SIZE, 1, GFP_ATOMIC); |
prot | 624 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev, |
prot | 628 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
prot | 643 | net/inet/tcp.c | sk->window = sk->prot->rspace(sk); |
prot | 665 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
prot | 685 | net/inet/tcp.c | sk->window = sk->prot->rspace(sk); |
prot | 705 | net/inet/tcp.c | struct proto *prot; |
prot | 712 | net/inet/tcp.c | prot = sk->prot; |
prot | 791 | net/inet/tcp.c | prot->max_header, len); |
prot | 830 | net/inet/tcp.c | skb = (struct sk_buff *) prot->wmalloc(sk, |
prot | 831 | net/inet/tcp.c | sk->mss + 128 + prot->max_header + |
prot | 836 | net/inet/tcp.c | skb->mem_len = sk->mss + 128 + prot->max_header + sizeof(*skb); |
prot | 840 | net/inet/tcp.c | skb = (struct sk_buff *) prot->wmalloc(sk, |
prot | 841 | net/inet/tcp.c | copy + prot->max_header + |
prot | 845 | net/inet/tcp.c | skb->mem_len = copy+prot->max_header + sizeof(*skb); |
prot | 889 | net/inet/tcp.c | tmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev, |
prot | 892 | net/inet/tcp.c | prot->wfree(sk, skb->mem_addr, skb->mem_len); |
prot | 904 | net/inet/tcp.c | prot->wfree(sk, skb->mem_addr, skb->mem_len); |
prot | 946 | net/inet/tcp.c | prot->queue_xmit(sk, dev, skb,0); |
prot | 997 | net/inet/tcp.c | buff = (struct sk_buff *) sk->prot->wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC); |
prot | 1010 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
prot | 1014 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
prot | 1032 | net/inet/tcp.c | sk->window = sk->prot->rspace(sk); |
prot | 1037 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
prot | 1060 | net/inet/tcp.c | left = sk->prot->rspace(sk); |
prot | 1084 | net/inet/tcp.c | sk->window - sk->bytes_rcv, sk->prot->rspace(sk))); |
prot | 1087 | net/inet/tcp.c | printk("sk->rspace = %lu, was %d\n", sk->prot->rspace(sk), |
prot | 1089 | net/inet/tcp.c | if (sk->prot->rspace(sk) != left) |
prot | 1102 | net/inet/tcp.c | if ((sk->prot->rspace(sk) > (sk->window - sk->bytes_rcv + sk->mtu))) { |
prot | 1451 | net/inet/tcp.c | struct proto *prot; |
prot | 1470 | net/inet/tcp.c | prot =(struct proto *)sk->prot; |
prot | 1473 | net/inet/tcp.c | buff = (struct sk_buff *) prot->wmalloc(sk, MAX_RESET_SIZE,1 , GFP_KERNEL); |
prot | 1485 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
prot | 1490 | net/inet/tcp.c | prot->wfree(sk,buff->mem_addr, buff->mem_len); |
prot | 1505 | net/inet/tcp.c | t1->window = ntohs(sk->prot->rspace(sk)); |
prot | 1522 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
prot | 1572 | net/inet/tcp.c | struct proto *prot, struct options *opt, struct device *dev) |
prot | 1582 | net/inet/tcp.c | buff = (struct sk_buff *) prot->wmalloc(NULL, MAX_RESET_SIZE, 1, GFP_ATOMIC); |
prot | 1596 | net/inet/tcp.c | tmp = prot->build_header(buff, saddr, daddr, &dev, IPPROTO_TCP, opt, |
prot | 1600 | net/inet/tcp.c | prot->wfree(NULL, buff->mem_addr, buff->mem_len); |
prot | 1635 | net/inet/tcp.c | prot->queue_xmit(NULL, dev, buff, 1); |
prot | 1720 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt, dev); |
prot | 1820 | net/inet/tcp.c | buff = (struct sk_buff *) newsk->prot->wmalloc(newsk, MAX_SYN_SIZE, 1, GFP_ATOMIC); |
prot | 1837 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &dev, |
prot | 1863 | net/inet/tcp.c | newsk->window = newsk->prot->rspace(newsk); |
prot | 1881 | net/inet/tcp.c | newsk->prot->queue_xmit(newsk, dev, buff, 0); |
prot | 1902 | net/inet/tcp.c | struct proto *prot; |
prot | 1979 | net/inet/tcp.c | prot =(struct proto *)sk->prot; |
prot | 1981 | net/inet/tcp.c | buff = (struct sk_buff *) prot->wmalloc(sk, MAX_FIN_SIZE, 1, GFP_ATOMIC); |
prot | 2000 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
prot | 2022 | net/inet/tcp.c | t1->window = ntohs(sk->prot->rspace(sk)); |
prot | 2029 | net/inet/tcp.c | prot->queue_xmit(sk, dev, buff, 0); |
prot | 2093 | net/inet/tcp.c | sk->prot->queue_xmit(sk, skb->dev, skb, skb->free); |
prot | 2424 | net/inet/tcp.c | sk->prot, NULL, skb->dev); |
prot | 2581 | net/inet/tcp.c | while (sk->prot->rspace(sk) < sk->mtu) { |
prot | 2801 | net/inet/tcp.c | buff = (struct sk_buff *) sk->prot->wmalloc(sk,MAX_SYN_SIZE,0, GFP_KERNEL); |
prot | 2815 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
prot | 2818 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
prot | 2855 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
prot | 3015 | net/inet/tcp.c | if (!sk->prot) { |
prot | 3098 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev); |
prot | 3148 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev); |
prot | 3161 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev); |
prot | 3170 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, prot, opt,dev); |
prot | 3216 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt, dev); |
prot | 3239 | net/inet/tcp.c | sk->prot, opt,dev); |
prot | 3264 | net/inet/tcp.c | sk->prot, opt, dev); |
prot | 3344 | net/inet/tcp.c | buff = (struct sk_buff *) sk->prot->wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC); |
prot | 3356 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
prot | 3359 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
prot | 3382 | net/inet/tcp.c | t1->window = ntohs(sk->prot->rspace(sk)); |
prot | 3389 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
prot | 109 | net/inet/timer.c | sk->prot->read_wakeup (sk); |
prot | 166 | net/inet/timer.c | sk->prot->retransmit (sk, 0); |
prot | 181 | net/inet/timer.c | sk->prot->close (sk, 1); |
prot | 190 | net/inet/timer.c | if (sk->prot->write_wakeup) |
prot | 191 | net/inet/timer.c | sk->prot->write_wakeup (sk); |
prot | 194 | net/inet/timer.c | sk->prot->close (sk, 1); |
prot | 216 | net/inet/timer.c | sk->prot->close (sk, 1); |
prot | 235 | net/inet/udp.c | size = sizeof(struct sk_buff) + sk->prot->max_header + len; |
prot | 236 | net/inet/udp.c | skb = (struct sk_buff *) sk->prot->wmalloc(sk, size, 0, GFP_KERNEL); |
prot | 251 | net/inet/udp.c | tmp = sk->prot->build_header(skb, saddr, sin->sin_addr.s_addr, |
prot | 256 | net/inet/udp.c | sk->prot->wfree(sk, skb->mem_addr, skb->mem_len); |
prot | 277 | net/inet/udp.c | sk->prot->wfree(sk, skb->mem_addr, skb->mem_len); |
prot | 295 | net/inet/udp.c | sk->prot->queue_xmit(sk, dev, skb, 1); |
prot | 389 | net/inet/udp.c | amount = sk->prot->wspace(sk)/*/2*/; |