userspace: net sockets are kernel objects

Any data structure declaration tagged with __net_socket will end up
in the kernel object table with type K_OBJ_NET_SOCKET. These all
correspond to objects which are associated with socket file
descriptors and can handle the socket vtable API.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-05-29 13:30:19 -07:00 committed by Carles Cufí
commit 299ec8f1b5
3 changed files with 20 additions and 3 deletions

View file

@ -40,7 +40,7 @@ __syscall\s+ # __syscall attribute, must be first
[)] # Closing parenthesis
''', regex_flags)
struct_tags = ["__subsystem"]
struct_tags = ["__subsystem", "__net_socket"]
tagged_struct_decl_template = r'''
%s\s+ # tag, must be first