The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/nlm/sm_inter_xdr.c

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Please do not edit this file.
    3  * It was generated using rpcgen.
    4  */
    5 
    6 #include <nlm/sm_inter.h>
    7 #include <sys/cdefs.h>
    8 __FBSDID("$FreeBSD: releng/12.0/sys/nlm/sm_inter_xdr.c 177685 2008-03-28 09:50:32Z dfr $");
    9 
   10 bool_t
   11 xdr_sm_name(XDR *xdrs, sm_name *objp)
   12 {
   13 
   14         if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN))
   15                 return (FALSE);
   16         return (TRUE);
   17 }
   18 
   19 bool_t
   20 xdr_my_id(XDR *xdrs, my_id *objp)
   21 {
   22 
   23         if (!xdr_string(xdrs, &objp->my_name, SM_MAXSTRLEN))
   24                 return (FALSE);
   25         if (!xdr_int(xdrs, &objp->my_prog))
   26                 return (FALSE);
   27         if (!xdr_int(xdrs, &objp->my_vers))
   28                 return (FALSE);
   29         if (!xdr_int(xdrs, &objp->my_proc))
   30                 return (FALSE);
   31         return (TRUE);
   32 }
   33 
   34 bool_t
   35 xdr_mon_id(XDR *xdrs, mon_id *objp)
   36 {
   37 
   38         if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN))
   39                 return (FALSE);
   40         if (!xdr_my_id(xdrs, &objp->my_id))
   41                 return (FALSE);
   42         return (TRUE);
   43 }
   44 
   45 bool_t
   46 xdr_mon(XDR *xdrs, mon *objp)
   47 {
   48 
   49         if (!xdr_mon_id(xdrs, &objp->mon_id))
   50                 return (FALSE);
   51         if (!xdr_opaque(xdrs, objp->priv, 16))
   52                 return (FALSE);
   53         return (TRUE);
   54 }
   55 
   56 bool_t
   57 xdr_stat_chge(XDR *xdrs, stat_chge *objp)
   58 {
   59 
   60         if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN))
   61                 return (FALSE);
   62         if (!xdr_int(xdrs, &objp->state))
   63                 return (FALSE);
   64         return (TRUE);
   65 }
   66 
   67 bool_t
   68 xdr_sm_stat(XDR *xdrs, sm_stat *objp)
   69 {
   70 
   71         if (!xdr_int(xdrs, &objp->state))
   72                 return (FALSE);
   73         return (TRUE);
   74 }
   75 
   76 bool_t
   77 xdr_sm_res(XDR *xdrs, sm_res *objp)
   78 {
   79 
   80         if (!xdr_enum(xdrs, (enum_t *)objp))
   81                 return (FALSE);
   82         return (TRUE);
   83 }
   84 
   85 bool_t
   86 xdr_sm_stat_res(XDR *xdrs, sm_stat_res *objp)
   87 {
   88 
   89         if (!xdr_sm_res(xdrs, &objp->res_stat))
   90                 return (FALSE);
   91         if (!xdr_int(xdrs, &objp->state))
   92                 return (FALSE);
   93         return (TRUE);
   94 }
   95 
   96 bool_t
   97 xdr_sm_status(XDR *xdrs, sm_status *objp)
   98 {
   99 
  100         if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN))
  101                 return (FALSE);
  102         if (!xdr_int(xdrs, &objp->state))
  103                 return (FALSE);
  104         if (!xdr_opaque(xdrs, objp->priv, 16))
  105                 return (FALSE);
  106         return (TRUE);
  107 }

Cache object: c0be37445523c6206e84061902415f60


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.