Userspace: better support for ALLOC_MALLOC

An alternative memory allocation strategy for userspace
This commit is contained in:
Vadim Vetrov
2024-10-26 01:12:52 +03:00
parent f344e525d2
commit 7070ddfc74
3 changed files with 37 additions and 8 deletions

View File

@@ -85,6 +85,9 @@
#endif /* not a KERNEL_SPACE */
/* An alternative memory allocation strategy for userspace app */
// #define ALLOC_MALLOC
/**
* Use NETBUF_ALLOC and NETBUF_FREE as an abstraction of memory allocation.
* Do not use it within expressions, consider these defines as separate statements.