|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH v3 1/4] lib/vfscore: Use a scalable bitmap for open file descriptors
Hello Costin, This patch seems fine. Reviewed-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx> Thanks & Regards Sharan On 9/9/19 11:57 AM, Costin Lupu wrote: Until now, the number of open file descriptors was limited to 64, which was the number of bits of the underlying bitmap. We fix that by replacing with a configurable bitmap. We set the default value of maximum open files to 1024. Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx> --- lib/vfscore/fd.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/vfscore/fd.c b/lib/vfscore/fd.c index 01025a46..e09dd54c 100644 --- a/lib/vfscore/fd.c +++ b/lib/vfscore/fd.c @@ -35,19 +35,19 @@#include <string.h>#include <uk/essentials.h> -#include <uk/bitops.h> +#include <uk/bitmap.h> #include <uk/assert.h> #include <vfscore/file.h> #include <uk/plat/lcpu.h> #include <errno.h> #include <uk/ctors.h>-#define FDTABLE_MAX_FILES (sizeof(uint64_t) * 8)+#define FDTABLE_MAX_FILES 1024void init_stdio(void); struct fdtable { _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |