Lines Matching refs:cnt
171 nla_read(nlamsgbuf_t *a, void *buf, size_t cnt)
173 if (cnt > a->u.nla.nla_len ||
174 fido_buf_read((void *)&a->ptr, &a->len, buf, cnt) < 0)
177 a->u.nla.nla_len = (uint16_t)(a->u.nla.nla_len - cnt);
208 nlmsg_read(nlmsgbuf_t *m, void *buf, size_t cnt)
210 if (cnt > m->u.nlmsg.nlmsg_len ||
211 fido_buf_read((void *)&m->ptr, &m->len, buf, cnt) < 0)
214 m->u.nlmsg.nlmsg_len = (uint32_t)(m->u.nlmsg.nlmsg_len - cnt);
220 nlmsg_write(nlmsgbuf_t *m, const void *buf, size_t cnt)
222 if (cnt > UINT32_MAX - m->u.nlmsg.nlmsg_len ||
223 fido_buf_write(&m->ptr, &m->len, buf, cnt) < 0)
226 m->u.nlmsg.nlmsg_len = (uint32_t)(m->u.nlmsg.nlmsg_len + cnt);