]> xenbits.xensource.com Git - people/aperard/mini-os.git/commit
use alloc_file_type() and get_file_from_fd() in xs
authorJuergen Gross <jgross@suse.com>
Sun, 16 Jan 2022 08:33:19 +0000 (09:33 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Jan 2022 18:26:43 +0000 (18:26 +0000)
commit0b4c24e0631bfe397be60b716f27e25334dc28a7
treed0d549fcef1727223903159b69925ba27a55c2be
parentf38bf39a14939b2ef911ff7a152247b9e09a3d36
use alloc_file_type() and get_file_from_fd() in xs

Allocate the needed file type via alloc_file_type().

Instead of directly accessing the files[] array use get_file_from_fd().

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