/share/doc/papers/kernmalloc/alloc.fig

https://bitbucket.org/freebsd/freebsd-head/ · Unknown · 115 lines · 111 code · 4 blank · 0 comment · 0 complexity · f2d05480fc818299a06692e42d5b41ca MD5 · raw file

  1. .\" Copyright (c) 1988 The Regents of the University of California.
  2. .\" All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms, with or without
  5. .\" modification, are permitted provided that the following conditions
  6. .\" are met:
  7. .\" 1. Redistributions of source code must retain the above copyright
  8. .\" notice, this list of conditions and the following disclaimer.
  9. .\" 2. Redistributions in binary form must reproduce the above copyright
  10. .\" notice, this list of conditions and the following disclaimer in the
  11. .\" documentation and/or other materials provided with the distribution.
  12. .\" 3. All advertising materials mentioning features or use of this software
  13. .\" must display the following acknowledgement:
  14. .\" This product includes software developed by the University of
  15. .\" California, Berkeley and its contributors.
  16. .\" 4. Neither the name of the University nor the names of its contributors
  17. .\" may be used to endorse or promote products derived from this software
  18. .\" without specific prior written permission.
  19. .\"
  20. .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  21. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  24. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  25. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  26. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  29. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30. .\" SUCH DAMAGE.
  31. .\"
  32. .\" @(#)alloc.fig 5.1 (Berkeley) 4/16/91
  33. .\"
  34. .PS
  35. scale=100
  36. define m0 |
  37. [ box invis ht 16 wid 32 with .sw at 0,0
  38. line from 4,12 to 4,4
  39. line from 8,12 to 8,4
  40. line from 12,12 to 12,4
  41. line from 16,12 to 16,4
  42. line from 20,12 to 20,4
  43. line from 24,12 to 24,4
  44. line from 28,12 to 28,4
  45. line from 0,16 to 0,0
  46. line from 0,8 to 32,8
  47. ] |
  48. define m1 |
  49. [ box invis ht 16 wid 32 with .sw at 0,0
  50. line from 8,12 to 8,4
  51. line from 16,12 to 16,4
  52. line from 24,12 to 24,4
  53. line from 0,8 to 32,8
  54. line from 0,16 to 0,0
  55. ] |
  56. define m2 |
  57. [ box invis ht 16 wid 32 with .sw at 0,0
  58. line from 0,8 to 32,8
  59. line from 0,16 to 0,0
  60. ] |
  61. define m3 |
  62. [ box invis ht 16 wid 31 with .sw at 0,0
  63. line from 15,12 to 15,4
  64. line from 0,8 to 31,8
  65. line from 0,16 to 0,0
  66. ] |
  67. box invis ht 212 wid 580 with .sw at 0,0
  68. "\f1\s10\&kernel memory pages\f1\s0" at 168,204
  69. "\f1\s10\&Legend:\f1\s0" at 36,144
  70. "\f1\s10\&cont \- continuation of previous page\f1\s0" at 28,112 ljust
  71. "\f1\s10\&free \- unused page\f1\s0" at 28,128 ljust
  72. "\f1\s10\&Usage:\f1\s0" at 34,87
  73. "\f1\s10\&memsize(addr)\f1\s0" at 36,71 ljust
  74. "\f1\s10\&char *addr;\f1\s0" at 66,56 ljust
  75. "\f1\s10\&{\f1\s0" at 36,43 ljust
  76. "\f1\s10\&return(kmemsizes[(addr \- kmembase) \- \s-1PAGESIZE\s+1]);\f1" at 66,29 ljust
  77. "\f1\s10\&}\f1\s0" at 36,8 ljust
  78. line from 548,192 to 548,176
  79. line from 548,184 to 580,184 dotted
  80. "\f1\s10\&1024,\f1\s0" at 116,168
  81. "\f1\s10\&256,\f1\s0" at 148,168
  82. "\f1\s10\&512,\f1\s0" at 180,168
  83. "\f1\s10\&3072,\f1\s0" at 212,168
  84. "\f1\s10\&cont,\f1\s0" at 276,168
  85. "\f1\s10\&cont,\f1\s0" at 244,168
  86. "\f1\s10\&128,\f1\s0" at 308,168
  87. "\f1\s10\&128,\f1\s0" at 340,168
  88. "\f1\s10\&free,\f1\s0" at 372,168
  89. "\f1\s10\&cont,\f1\s0" at 404,168
  90. "\f1\s10\&128,\f1\s0" at 436,168
  91. "\f1\s10\&1024,\f1\s0" at 468,168
  92. "\f1\s10\&free,\f1\s0" at 500,168
  93. "\f1\s10\&cont,\f1\s0" at 532,168
  94. "\f1\s10\&cont,\f1\s0" at 564,168
  95. m2 with .nw at 100,192
  96. m1 with .nw at 132,192
  97. m3 with .nw at 164,192
  98. m2 with .nw at 196,192
  99. m2 with .nw at 228,192
  100. m2 with .nw at 260,192
  101. m0 with .nw at 292,192
  102. m0 with .nw at 324,192
  103. m2 with .nw at 356,192
  104. m2 with .nw at 388,192
  105. m0 with .nw at 420,192
  106. m2 with .nw at 452,192
  107. m2 with .nw at 484,192
  108. m2 with .nw at 516,192
  109. "\f1\s10\&kmemsizes[] = {\f1\s0" at 100,168 rjust
  110. "\f1\s10\&char *kmembase\f1\s0" at 97,184 rjust
  111. .PE