Lines Matching refs:buf
51 /* Receives a netlink message, allocates a buffer in *buf and stores
54 * *buf if a positive value is returned. Interrupted system calls are
58 unsigned char **buf, struct ucred **creds)
68 *buf = (unsigned char *) malloc(RECV_BUF_SIZE);
69 if (!(*buf)) {
75 recvmsg_iov.iov_base = *buf;
95 free(*buf);
96 *buf = NULL;
113 unsigned char *buf;
120 rc = nl_recv(sk, &nla, &buf, &creds);
124 nlmsg_for_each_msg(nlh, (struct nlmsghdr *) buf, rc, rem) {
191 free(buf);
192 buf = NULL;