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:
parent
5960119f16
commit
299ec8f1b5
3 changed files with 20 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue