]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-fd: Move heap-alloc ofiles out of fdtab
authorAndrei Tatar <andrei@unikraft.io>
Tue, 18 Mar 2025 16:55:34 +0000 (17:55 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Thu, 27 Mar 2025 17:23:26 +0000 (17:23 +0000)
commit5050e9f11e57a17bd18d4f1a3478010b329c6855
tree82b34b3cc2b00d4572756426c2139460d81aea98
parentebcfc3cc62d70956ba91946189cd7c41ebc1d764
lib/posix-fd: Move heap-alloc ofiles out of fdtab

This change moves the responsibility for allocating, managing the
lifetime of, and freeing heap-allocated open file descriptions out of
individual fdtab instances and into the main posix-fd API.
This allows libraries to create kernel-wide dynamic open file
descriptions independent of an fdtab.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Approved-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
GitHub-Closes: #1602
lib/posix-fd/Config.uk
lib/posix-fd/include/uk/posix-fd.h
lib/posix-fdio/fd-shim.c
lib/posix-fdtab/Config.uk
lib/posix-fdtab/fdtab.c
lib/posix-fdtab/include/uk/posix-fdtab.h
lib/posix-poll/epoll.c
lib/posix-socket/socket.c
lib/posix-timerfd/timerfd.c