Lines Matching refs:acct
143 int event, struct nf_acct *acct)
156 if (nla_put_string(skb, NFACCT_NAME, acct->name))
159 old_flags = acct->flags;
161 pkts = atomic64_xchg(&acct->pkts, 0);
162 bytes = atomic64_xchg(&acct->bytes, 0);
164 if (acct->flags & NFACCT_F_QUOTA)
165 clear_bit(NFACCT_OVERQUOTA_BIT, &acct->flags);
167 pkts = atomic64_read(&acct->pkts);
168 bytes = atomic64_read(&acct->bytes);
174 nla_put_be32(skb, NFACCT_USE, htonl(refcount_read(&acct->refcnt))))
176 if (acct->flags & NFACCT_F_QUOTA) {
177 u64 *quota = (u64 *)acct->data;
409 .name = "acct",
420 struct nf_acct *cur, *acct = NULL;
435 acct = cur;
440 return acct;
444 void nfnl_acct_put(struct nf_acct *acct)
446 if (refcount_dec_and_test(&acct->refcnt))
447 kfree_rcu(acct, rcu_head);