memcpy(p, obj->data, obj->len);
return p + XDR_QUADLEN(obj->len);
}
memcpy(p, obj->data, obj->len);
return p + XDR_QUADLEN(obj->len);
}
__be32 *
xdr_encode_string(__be32 *p, const char *string)
{
return xdr_encode_array(p, string, strlen(string));
}
__be32 *
xdr_encode_string(__be32 *p, const char *string)
{
return xdr_encode_array(p, string, strlen(string));
}
void
xdr_encode_pages(struct xdr_buf *xdr, struct page **pages, unsigned int base,
void
xdr_encode_pages(struct xdr_buf *xdr, struct page **pages, unsigned int base,
xdr->p = (__be32 *)((char *)iov->iov_base + padding);
xdr->end = (__be32 *)((char *)iov->iov_base + end);
}
xdr->p = (__be32 *)((char *)iov->iov_base + padding);
xdr->end = (__be32 *)((char *)iov->iov_base + end);
}
/* Sets subbuf to the portion of buf of length len beginning base bytes
* from the start of buf. Returns -1 if base of length are out of bounds. */
/* Sets subbuf to the portion of buf of length len beginning base bytes
* from the start of buf. Returns -1 if base of length are out of bounds. */
return write_bytes_to_xdr_buf(buf, base, &raw, sizeof(obj));
}
return write_bytes_to_xdr_buf(buf, base, &raw, sizeof(obj));
}
/* If the netobj starting offset bytes from the start of xdr_buf is contained
* entirely in the head or the tail, set object to point to it; otherwise
/* If the netobj starting offset bytes from the start of xdr_buf is contained
* entirely in the head or the tail, set object to point to it; otherwise
return xdr_xcode_array2(buf, base, desc, 0);
}
return xdr_xcode_array2(buf, base, desc, 0);
}
return xdr_xcode_array2(buf, base, desc, 1);
}
return xdr_xcode_array2(buf, base, desc, 1);
}
int
xdr_process_buf(struct xdr_buf *buf, unsigned int offset, unsigned int len,
int
xdr_process_buf(struct xdr_buf *buf, unsigned int offset, unsigned int len,