Home | History | Annotate | Line # | Download | only in rpc.lockd
      1 /*	$NetBSD: lockd_lock.h,v 1.3 2007/11/04 23:12:50 christos Exp $	*/
      2 
      3 /* Headers and function declarations for file-locking utilities */
      4 
      5 struct nlm4_holder *testlock(struct nlm4_lock *, int);
      6 
      7 enum nlm_stats getlock(nlm4_lockargs *, struct svc_req *, int);
      8 enum nlm_stats unlock(nlm4_lock *, int);
      9 void notify(const char *, int);
     10 
     11 /* flags for testlock, getlock & unlock */
     12 #define LOCK_ASYNC	0x01 /* async version (getlock only) */
     13 #define LOCK_V4 	0x02 /* v4 version */
     14 #define LOCK_MON 	0x04 /* monitored lock (getlock only) */
     15 #define LOCK_CANCEL 0x08 /* cancel, not unlock request (unlock only) */
     16 
     17 /* callbacks from lock_proc.c */
     18 void	transmit_result(int, nlm_res *, struct sockaddr *);
     19 void	transmit4_result(int, nlm4_res *, struct sockaddr *);
     20 CLIENT  *get_client(struct sockaddr *, rpcvers_t);
     21