[BACK]Return to puffs_sys.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / fs / puffs

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/fs/puffs/puffs_sys.h between version 1.61 and 1.62

version 1.61, 2007/11/12 17:42:13 version 1.62, 2007/11/16 20:32:18
Line 193  void puffs_msgif_init(void);
Line 193  void puffs_msgif_init(void);
 void    puffs_msgif_destroy(void);  void    puffs_msgif_destroy(void);
 int     puffs_msgmem_alloc(size_t, struct puffs_msgpark **, void **, int);  int     puffs_msgmem_alloc(size_t, struct puffs_msgpark **, void **, int);
 void    puffs_msgmem_release(struct puffs_msgpark *);  void    puffs_msgmem_release(struct puffs_msgpark *);
 void    puffs_msg_setfaf(struct puffs_msgpark *);  
   
 int     puffs_msg_vfs(struct puffs_mount *, struct puffs_msgpark *, int);  void    puffs_msg_setfaf(struct puffs_msgpark *);
 int     puffs_msg_vn(struct puffs_mount *, struct puffs_msgpark *, int, size_t,  void    puffs_msg_setdelta(struct puffs_msgpark *, size_t);
                        struct vnode *, struct vnode *);  void    puffs_msg_setinfo(struct puffs_msgpark *, int, int, void *);
 void    puffs_msg_vncall(struct puffs_mount *, struct puffs_msgpark *, int,  void    puffs_msg_setcall(struct puffs_msgpark *, parkdone_fn, void *);
                             size_t, parkdone_fn, void *, struct vnode *);  
 int     puffs_msg_raw(struct puffs_mount *, struct puffs_msgpark *);  void    puffs_msg_enqueue(struct puffs_mount *, struct puffs_msgpark *);
 void    puffs_msg_errnotify(struct puffs_mount *, uint8_t, int,  int     puffs_msg_wait(struct puffs_mount *, struct puffs_msgpark *);
                             const char *, void *);  int     puffs_msg_wait2(struct puffs_mount *, struct puffs_msgpark *,
                           struct puffs_node *, struct puffs_node *);
   
 int     puffs_getvnode(struct mount *, void *, enum vtype, voff_t, dev_t,  int     puffs_getvnode(struct mount *, void *, enum vtype, voff_t, dev_t,
                        struct vnode **);                         struct vnode **);
Line 231  void puffs_mp_release(struct puffs_mount
Line 231  void puffs_mp_release(struct puffs_mount
 void    puffs_gop_size(struct vnode *, off_t, off_t *, int);  void    puffs_gop_size(struct vnode *, off_t, off_t *, int);
 void    puffs_gop_markupdate(struct vnode *, int);  void    puffs_gop_markupdate(struct vnode *, int);
   
   void    puffs_senderr(struct puffs_mount *, int, int, const char *, void *);
   
 void    puffs_updatenode(struct vnode *, int);  void    puffs_updatenode(struct vnode *, int);
 #define PUFFS_UPDATEATIME       0x01  #define PUFFS_UPDATEATIME       0x01
 #define PUFFS_UPDATECTIME       0x02  #define PUFFS_UPDATECTIME       0x02
Line 243  extern int (**puffs_vnodeop_p)(void *);
Line 245  extern int (**puffs_vnodeop_p)(void *);
   
 MALLOC_DECLARE(M_PUFFS);  MALLOC_DECLARE(M_PUFFS);
   
   /* for putter */
 int     puffs_msgif_getout(void *, size_t, int, uint8_t **, size_t *, void **);  int     puffs_msgif_getout(void *, size_t, int, uint8_t **, size_t *, void **);
 void    puffs_msgif_releaseout(void *, void *, int);  void    puffs_msgif_releaseout(void *, void *, int);
 int     puffs_msgif_dispatch(void *, struct putter_hdr *);  int     puffs_msgif_dispatch(void *, struct putter_hdr *);
Line 254  checkerr(struct puffs_mount *pmp, int er
Line 257  checkerr(struct puffs_mount *pmp, int er
 {  {
   
         if (error < 0 || error > ELAST) {          if (error < 0 || error > ELAST) {
                 puffs_msg_errnotify(pmp, PUFFS_ERR_ERROR, error, str, NULL);                  puffs_senderr(pmp, PUFFS_ERR_ERROR, error, str, NULL);
                 error = EPROTO;                  error = EPROTO;
         }          }
   
Line 274  do {         \
Line 277  do {         \
         if (park_##a) puffs_msgmem_release(park_##a);                   \          if (park_##a) puffs_msgmem_release(park_##a);                   \
 } while (/*CONSTCOND*/0)  } while (/*CONSTCOND*/0)
   
   #define PUFFS_MSG_ENQUEUEWAIT(pmp, park, var)                           \
   do {                                                                    \
           puffs_msg_enqueue(pmp, park);                                   \
           var = puffs_msg_wait(pmp, park);                                \
   } while (/*CONSTCOND*/0)
   
   #define PUFFS_MSG_ENQUEUEWAIT2(pmp, park, vp1, vp2, var)                \
   do {                                                                    \
           puffs_msg_enqueue(pmp, park);                                   \
           var = puffs_msg_wait2(pmp, park, vp1, vp2);                     \
   } while (/*CONSTCOND*/0)
   
 #endif /* _PUFFS_SYS_H_ */  #endif /* _PUFFS_SYS_H_ */

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62

CVSweb <webmaster@jp.NetBSD.org>