net: sockets: Add a way to register a socket family handler
Allow automatic handling of registered socket families. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
252ab55923
commit
89bf1578d9
4 changed files with 58 additions and 1 deletions
|
@ -67,6 +67,16 @@
|
|||
__net_l2_end = .;
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
|
||||
#if defined(CONFIG_NET_SOCKETS)
|
||||
SECTION_PROLOGUE(net_socket_register,,)
|
||||
{
|
||||
__net_socket_register_start = .;
|
||||
*(".net_socket_register.init")
|
||||
KEEP(*(SORT_BY_NAME(".net_socket_register.init*")))
|
||||
__net_socket_register_end = .;
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
#endif
|
||||
|
||||
SECTION_DATA_PROLOGUE(_bt_services_area,,SUBALIGN(4))
|
||||
{
|
||||
_bt_services_start = .;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue