/* The "my_id" argument specifies the hostname and RPC procedure to be called when the status manager receives notification (via the NLMPROC_SM_NOTIFY call) that the state of host "mon_name" has changed.  */
static int encode_my_id(struct xdr_stream *xdr, const struct nsm_args *argp)
/* The "my_id" argument specifies the hostname and RPC procedure to be called when the status manager receives notification (via the NLMPROC_SM_NOTIFY call) that the state of host "mon_name" has changed.  */
static int encode_my_id(struct xdr_stream *xdr, const struct nsm_args *argp)
{
	int status;
	__be32 *p;
	status = encode_nsm_string(xdr, utsname()->nodename);
	if (unlikely(status != 0))
		return status;
	p = xdr_reserve_space(xdr, 3 * sizeof(u32));
	if (unlikely(p == NULL))
		return -EIO;
	*p++ = htonl(argp->prog);
	*p++ = htonl(argp->vers);
	*p++ = htonl(argp->proc);
	return 0;
}