mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps/net: add get iobinfo api
Obtain detailed IOB information by parsing the /proc/iobinfo file. Signed-off-by: meijian <meijian@xiaomi.com>
This commit is contained in:
parent
fb4f80665d
commit
9da2bc0696
4 changed files with 121 additions and 0 deletions
|
|
@ -52,6 +52,7 @@
|
|||
|
||||
#include <net/if.h>
|
||||
#include <netinet/in.h>
|
||||
#include <nuttx/mm/iob.h>
|
||||
#include <nuttx/net/netdev.h>
|
||||
#include <nuttx/net/netconfig.h>
|
||||
|
||||
|
|
@ -507,6 +508,10 @@ int netlib_getifstatistics(FAR const char *ifname,
|
|||
int netlib_check_ifconflict(FAR const char *ifname);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MM_IOB
|
||||
int netlib_get_iobinfo(FAR struct iob_stats_s *iob);
|
||||
#endif
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue