Function report |
Source Code:lib\nlattr.c |
Create Date:2022-07-28 07:16:23 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__nla_validate_parse
Proto:static int __nla_validate_parse(const struct nlattr *head, int len, int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack, struct nlattr **tb)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct nlattr * | head | |
| int | len | |
| int | maxtype | |
| const struct nla_policy * | policy | |
| unsigned int | validate | |
| struct netlink_ext_ack * | extack | |
| struct nlattr ** | tb |
| 373 | If validate & NL_VALIDATE_MAXTYPE Then |
| 374 | NL_SET_ERR_MSG_ATTR(extack, nla, "Unknown attribute type") |
| 376 | Return -EINVAL |
| 378 | Continue |
| 380 | If policy Then |
| 392 | If Value for the false possibility is greater at compile time(rem > 0) Then |
| 393 | pr_warn_ratelimited("netlink: %d bytes leftover after parsing attributes in process `%s'.\n", rem, comm) |
| 396 | If validate & NL_VALIDATE_TRAILING Then Return -EINVAL |
| 400 | Return 0 |
| Name | Describe |
|---|---|
| __nla_validate | __nla_validate - Validate a stream of attributes*@head: head of attribute stream*@len: length of attribute stream*@maxtype: maximum attribute type to be expected*@policy: validation policy*@validate: validation strictness*@extack: extended ACK report |
| __nla_parse | __nla_parse - Parse a stream of attributes into a tb buffer*@tb: destination array with maxtype+1 elements*@maxtype: maximum attribute type to be expected*@head: head of attribute stream*@len: length of attribute stream*@policy: validation |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |