-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: buf: add max allocation size to allocation info
Previously, there was no way to determine maximum number of bytes that can be allocated using only net_buf structure. This commit introduces such field. Moreover, this commit fixes an issue where allocation of less than maximum number of bytes from a fixed buffer pool would set buffer's size to this number instead of the whole buffer size. Signed-off-by: Konrad Derda <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters