RT-Thread API参考手册  3.1.1
嵌入式实时操作系统
套接字抽象层

SAL组件初始化接口 更多...

函数

int sal_init (void)
 SAL组件初始化 更多...
 
int sal_proto_family_register (const struct proto_family *pf)
 网络协议簇注册 更多...
 

详细描述

SAL组件初始化接口

函数说明

int sal_init ( void  )

SAL组件初始化

该函数完成对组件中使用的互斥锁等资源的初始化。

返回
0 SAL组件初始化成功。
int sal_proto_family_register ( const struct proto_family *  pf)

网络协议簇注册

该函数用于往SAL组件中注册网络协议簇。

参数
pf协议簇结构体指针
返回
0 注册成功;失败返回 -1。