Function report |
Source Code:lib\nlattr.c |
Create Date:2022-07-28 07:16:17 |
| 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_int_range
Proto:static int nla_validate_int_range(const struct nla_policy *pt, const struct nlattr *nla, struct netlink_ext_ack *extack)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct nla_policy * | pt | |
| const struct nlattr * | nla | |
| struct netlink_ext_ack * | extack |
| 106 | validate_min = validation_type == NLA_VALIDATE_RANGE || validation_type == NLA_VALIDATE_MIN |
| 108 | validate_max = validation_type == NLA_VALIDATE_RANGE || validation_type == NLA_VALIDATE_MAX |
| 142 | Default |
| 147 | If validate_min && value < min || validate_max && value > max Then |
| 149 | NL_SET_ERR_MSG_ATTR(extack, nla, "integer out of range") |
| 151 | Return -ERANGE |
| 154 | Return 0 |
| Name | Describe |
|---|---|
| validate_nla |
| 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 |