函数逻辑报告 |
Source Code:lib\nlattr.c |
Create Date:2022-07-27 08:14:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__nla_validate_parse
函数原型: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)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
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 | 如果validate按位与NL_VALIDATE_MAXTYPE则 |
374 | NL_SET_ERR_MSG_ATTR(extack, nla, "Unknown attribute type") |
376 | 返回:负EINVAL |
378 | 继续下一循环 |
380 | 如果policy则 |
392 | 如果此条件成立可能性小(为编译器优化)(rem > 0)则 |
393 | pr_warn_ratelimited("netlink: %d bytes leftover after parsing attributes in process `%s'.\n", rem, comm) |
396 | 如果validate按位与NL_VALIDATE_TRAILING则返回:负EINVAL |
400 | 返回:0 |
名称 | 描述 |
---|---|
__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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |