Kconfig 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see the file kconfig-language.txt in the NuttX tools repository.
  4. #
  5. config FS_TMPFS
  6. bool "TMPFS file system"
  7. default n
  8. depends on !DISABLE_MOUNTPOINT
  9. ---help---
  10. Enable TMPFS filesystem support
  11. if FS_TMPFS
  12. config FS_TMPFS_BLOCKSIZE
  13. int "Reported block size"
  14. default 512
  15. ---help---
  16. Various queries expect the file system to report resources in units
  17. of blocks. There are, of course, no blocks with the TMPFS. This
  18. options is available to control how sizes are reported. For very
  19. small TMPFS systems, you might want to set this to something smaller
  20. the usual 512 bytes.
  21. config FS_TMPFS_DIRECTORY_ALLOCGUARD
  22. int "Directory object over-allocation"
  23. default 64
  24. ---help---
  25. In order to avoid frequent reallocations, a little more memory than
  26. needed is always allocated. This permits the directory to grow
  27. without so many reallocations.
  28. config FS_TMPFS_DIRECTORY_FREEGUARD
  29. int "Directory under free"
  30. default 128
  31. ---help---
  32. In order to avoid frequent reallocations, a lot of free memory has
  33. to be available before a directory entry shrinks (via reallocation)
  34. little more memory than needed is always allocated. This permits
  35. the directory to shrink without so many reallocations.
  36. config FS_TMPFS_FILE_ALLOCGUARD
  37. int "Directory object over-allocation"
  38. default 512
  39. ---help---
  40. In order to avoid frequent reallocations, a little more memory than
  41. needed is always allocated. This permits the file to grow without
  42. so many reallocations.
  43. You will probably want to use smaller value than the default on tiny
  44. TMFPS systems.
  45. config FS_TMPFS_FILE_FREEGUARD
  46. int "Directory under free"
  47. default 1024
  48. ---help---
  49. In order to avoid frequent reallocations, a lot of free memory has
  50. to be available before a directory entry shrinks (via reallocation)
  51. little more memory than needed is always allocated. This permits
  52. the file to shrink without so many reallocations.
  53. endif