svn commit: r213725 - head/sys/fs/devfs

Jaakko Heinonen jh at FreeBSD.org
Tue Oct 12 15:58:53 UTC 2010


Author: jh
Date: Tue Oct 12 15:58:52 2010
New Revision: 213725
URL: http://svn.freebsd.org/changeset/base/213725

Log:
  Format prototypes to follow style(9) more closely.
  
  Discussed with:	kib, phk

Modified:
  head/sys/fs/devfs/devfs.h
  head/sys/fs/devfs/devfs_int.h

Modified: head/sys/fs/devfs/devfs.h
==============================================================================
--- head/sys/fs/devfs/devfs.h	Tue Oct 12 15:48:27 2010	(r213724)
+++ head/sys/fs/devfs/devfs.h	Tue Oct 12 15:58:52 2010	(r213725)
@@ -178,22 +178,25 @@ extern unsigned devfs_rule_depth;
 #define	DEVFS_DEL_VNLOCKED	0x01
 #define	DEVFS_DEL_NORECURSE	0x02
 
-void devfs_rules_apply(struct devfs_mount *dm, struct devfs_dirent *de);
-void devfs_rules_cleanup (struct devfs_mount *dm);
-int devfs_rules_ioctl(struct devfs_mount *dm, u_long cmd, caddr_t data, struct thread *td);
-int devfs_allocv(struct devfs_dirent *de, struct mount *mp, int lockmode,
-    struct vnode **vpp);
-char *devfs_fqpn(char *, struct devfs_mount *, struct devfs_dirent *,
-    struct componentname *);
-void devfs_delete(struct devfs_mount *dm, struct devfs_dirent *de, int flags);
-void devfs_dirent_free(struct devfs_dirent *de);
-void devfs_populate (struct devfs_mount *dm);
-void devfs_cleanup (struct devfs_mount *dm);
-void devfs_unmount_final(struct devfs_mount *mp);
-struct devfs_dirent *devfs_newdirent (char *name, int namelen);
-struct devfs_dirent *devfs_parent_dirent(struct devfs_dirent *de);
-struct devfs_dirent *devfs_vmkdir (struct devfs_mount *, char *name, int namelen, struct devfs_dirent *dotdot, u_int inode);
-struct devfs_dirent *devfs_find(struct devfs_dirent *dd, const char *name, int namelen, int type);
+void	devfs_rules_apply(struct devfs_mount *, struct devfs_dirent *);
+void	devfs_rules_cleanup(struct devfs_mount *);
+int	devfs_rules_ioctl(struct devfs_mount *, u_long, caddr_t,
+	    struct thread *);
+int	devfs_allocv(struct devfs_dirent *, struct mount *, int,
+	    struct vnode **);
+char	*devfs_fqpn(char *, struct devfs_mount *, struct devfs_dirent *,
+	    struct componentname *);
+void	devfs_delete(struct devfs_mount *, struct devfs_dirent *, int);
+void	devfs_dirent_free(struct devfs_dirent *);
+void	devfs_populate(struct devfs_mount *);
+void	devfs_cleanup(struct devfs_mount *);
+void	devfs_unmount_final(struct devfs_mount *);
+struct devfs_dirent	*devfs_newdirent(char *, int);
+struct devfs_dirent	*devfs_parent_dirent(struct devfs_dirent *);
+struct devfs_dirent	*devfs_vmkdir(struct devfs_mount *, char *, int,
+			    struct devfs_dirent *, u_int);
+struct devfs_dirent	*devfs_find(struct devfs_dirent *, const char *, int,
+			    int);
 
 #endif /* _KERNEL */
 

Modified: head/sys/fs/devfs/devfs_int.h
==============================================================================
--- head/sys/fs/devfs/devfs_int.h	Tue Oct 12 15:48:27 2010	(r213724)
+++ head/sys/fs/devfs/devfs_int.h	Tue Oct 12 15:58:52 2010	(r213725)
@@ -71,12 +71,12 @@ struct cdev_priv {
 
 #define	cdev2priv(c)	member2struct(cdev_priv, cdp_c, c)
 
-struct cdev *devfs_alloc(int);
-int devfs_dev_exists(const char *);
-void devfs_free(struct cdev *);
-void devfs_create(struct cdev *dev);
-void devfs_destroy(struct cdev *dev);
-void devfs_destroy_cdevpriv(struct cdev_privdata *p);
+struct cdev	*devfs_alloc(int);
+int	devfs_dev_exists(const char *);
+void	devfs_free(struct cdev *);
+void	devfs_create(struct cdev *);
+void	devfs_destroy(struct cdev *);
+void	devfs_destroy_cdevpriv(struct cdev_privdata *);
 
 int	devfs_dir_find(const char *);
 void	devfs_dir_ref_de(struct devfs_mount *, struct devfs_dirent *);


More information about the svn-src-head mailing list