Fork me on GitHub

root/include/fiwix/config.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * fiwix/include/fiwix/config.h
   3  *
   4  * Copyright 2018-2021, Jordi Sanfeliu. All rights reserved.
   5  * Distributed under the terms of the Fiwix License.
   6  */
   7 
   8 #ifndef _FIWIX_CONFIG_H
   9 #define _FIWIX_CONFIG_H
  10 
  11 /* maximum number of processes */
  12 #define NR_PROCS                64
  13 
  14 /* maximum number of callout functions (timer) */
  15 #define NR_CALLOUTS             NR_PROCS
  16 
  17 /* maximum number of mounted filesystems */
  18 #define NR_MOUNT_POINTS         8
  19 
  20 /* maximum number of opened files in system */
  21 #define NR_OPENS                1024
  22 
  23 /* maximum number of flocks in system */
  24 #define NR_FLOCKS               (NR_PROCS * 5)
  25 
  26 
  27 
  28 /* percentage of memory that buffer cache will borrow from available memory */
  29 #define BUFFER_PERCENTAGE       100
  30 
  31 /* percentage of hash buckets relative to the size of the buffer table */
  32 #define BUFFER_HASH_PERCENTAGE  10
  33 
  34 /* buffers reclaimed in a single shot */
  35 #define NR_BUF_RECLAIM          150
  36 
  37 
  38 /* percentage of memory assigned to the inode table and hash table */
  39 #define INODE_PERCENTAGE        1
  40 
  41 /* percentage of hash buckets relative to the size of the inode table */
  42 #define INODE_HASH_PERCENTAGE   10
  43 
  44 
  45 /* maximum value for PID */
  46 #define MAX_PID_VALUE           32767
  47 
  48 /* number of screens in console' scroll back */
  49 #define SCREENS_LOG             6
  50 
  51 /* maximum number of messages on spurious interrupts */
  52 #define MAX_SPU_NOTICES         10
  53 
  54 /* maximum number of virtual memory mappings (regions) */
  55 #define VMA_REGIONS             150
  56 
  57 
  58 
  59 /* #define CONFIG_VERBOSE_SEGFAULTS */
  60 
  61 #endif /* _FIWIX_CONFIG_H */

/* [previous][next][first][last][top][bottom][index][help] */