]> xenbits.xensource.com Git - people/andrewcoop/mini-os.git/commit
introduce get_file_from_fd()
authorJuergen Gross <jgross@suse.com>
Sun, 16 Jan 2022 06:45:23 +0000 (07:45 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 17 Jan 2022 10:51:21 +0000 (10:51 +0000)
commit0e19f674ab48dfce8be5a43d2fca78293a2e3ad8
tree55cb086c8778dd2a01bd4af1ab771c977a42b8cd
parent65d6fc6917ea0d9c652181215ea988e8e6dc576a
introduce get_file_from_fd()

Exporting the files[] array especially for components outside the
mini-os source tree is limiting the ability to change any file handling
in mini-os.

Introduce a new function get_file_from_fd() to return the struct file
pointer (or NULL) for a given file descriptor.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
include/lib.h
lib/sys.c