The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/tools/cocci/zalloc-data.cocci

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 // To apply, at the top of xnu.git:
    2 // $ spatch --max-width=80 --use-gitgrep --in-place --include-headers --sp-file tools/cocci/zalloc.cocci -dir .
    3 //
    4 // This might need to be run several times
    5 
    6 @ using "zalloc.iso" @
    7 expression D, E, F, G;
    8 type T;
    9 identifier V;
   10 @@
   11 (
   12 - kheap_alloc(KHEAP_DATA_BUFFERS, E, F)
   13 + kalloc_data(E, F)
   14 |
   15 - (T)kheap_alloc(KHEAP_DATA_BUFFERS, E, F)
   16 + (T)kalloc_data(E, F)
   17 |
   18 - kheap_alloc_tag(KHEAP_DATA_BUFFERS, E, F, G)
   19 + kalloc_data_tag(E, F, G)
   20 |
   21 - kheap_free(KHEAP_DATA_BUFFERS, E, F)
   22 + kfree_data(E, F)
   23 |
   24 - kheap_free_addr(KHEAP_DATA_BUFFERS, E)
   25 + kfree_data_addr(E)
   26 )
   27 
   28 // vim:ft=diff:

Cache object: 9fc885250e67c49a8505d7851f6ff09d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.