ring_buffer_wrap_allow_split.diag 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #Diagram demonstrating wrap around in a Allow-Split ring buffer
  2. #Buffer of 128 bytes, with 56 bytes free, and 28 bytes sent
  3. packetdiag ring_buffer_wrap_allow_split {
  4. node_width = 6
  5. node_height = 24
  6. default_fontsize = 12
  7. colwidth = 128
  8. #Initial state
  9. 0-39: 40 Free
  10. 40-47: 8 [color = lightblue];
  11. 48-63: 16 [color = lightyellow];
  12. 64-71: 8 [color = lightblue];
  13. 72-111: 40 [color = lightyellow];
  14. 112-127: 16 Free
  15. #Send first part
  16. 128-167: 40 Free
  17. 168-175: 8 [color = lightblue];
  18. 176-191: 16 [color = lightyellow];
  19. 192-199: 8 [color = lightblue];
  20. 200-239: 40 [color = lightyellow];
  21. 240-247: 8 [color = lightblue];
  22. 248-255: 8 [color = lightyellow];
  23. #Send second part
  24. 256-263: 8 [color = lightblue];
  25. 264-283: 20 [color = lightyellow];
  26. 284-295: 12 Free
  27. 296-303: 8 [color = lightblue];
  28. 304-319: 16 [color = lightyellow];
  29. 320-327: 8 [color = lightblue];
  30. 328-367: 40 [color = lightyellow];
  31. 368-375: 8 [color = lightblue];
  32. 376-383: 8 [color = lightyellow];
  33. }