Searched refs:unit (Results 1 – 4 of 4) sorted by relevance
/net/netfilter/ |
D | nft_limit.c | 57 u64 unit, tokens; in nft_limit_init() local 64 unit = be64_to_cpu(nla_get_be64(tb[NFTA_LIMIT_UNIT])); in nft_limit_init() 65 limit->nsecs = unit * NSEC_PER_SEC; in nft_limit_init() 66 if (limit->rate == 0 || limit->nsecs < unit) in nft_limit_init()
|
/net/netlink/ |
D | af_netlink.c | 2022 __netlink_kernel_create(struct net *net, int unit, struct module *module, in __netlink_kernel_create() argument 2034 if (unit < 0 || unit >= MAX_LINKS) in __netlink_kernel_create() 2037 if (sock_create_lite(PF_NETLINK, SOCK_DGRAM, unit, &sock)) in __netlink_kernel_create() 2040 if (__netlink_create(net, sock, cb_mutex, unit, 1) < 0) in __netlink_kernel_create() 2065 if (!nl_table[unit].registered) { in __netlink_kernel_create() 2066 nl_table[unit].groups = groups; in __netlink_kernel_create() 2067 rcu_assign_pointer(nl_table[unit].listeners, listeners); in __netlink_kernel_create() 2068 nl_table[unit].cb_mutex = cb_mutex; in __netlink_kernel_create() 2069 nl_table[unit].module = module; in __netlink_kernel_create() 2071 nl_table[unit].bind = cfg->bind; in __netlink_kernel_create() [all …]
|
/net/core/ |
D | dev.c | 549 unsigned long netdev_boot_base(const char *prefix, int unit) in netdev_boot_base() argument 555 sprintf(name, "%s%d", prefix, unit); in netdev_boot_base()
|
D | devlink.c | 2512 nla_put_u8(skb, DEVLINK_ATTR_RESOURCE_UNIT, size_params->unit)) in devlink_resource_size_params_put()
|