]> xenbits.xensource.com Git - mini-os.git/commit
add struct file_ops for file type socket
authorJuergen Gross <jgross@suse.com>
Sun, 16 Jan 2022 08:33:26 +0000 (09:33 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Jan 2022 18:26:43 +0000 (18:26 +0000)
commitab2cce28102deea8ca04e3b7b85f85e2b9eebda9
treeb4caafe388744c9264bb960e6720d9f2a100bb21
parent02d4145d14d3d77d92cb2b31aae90f64fe213369
add struct file_ops for file type socket

Even with some special handling needed in select_poll(), add a struct
file_ops for FTYPE_SOCKET. Due to the need of the special handling it
isn't possible to use a dynamically allocated file type.

Most functions calling the file_ops methods can be simplified a lot now
that no file type specific handling is left. Same applies to the file
type name printing in debug/verbose mode.

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