Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2011 18:55:16 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r221398 - head/share/man/man9
Message-ID:  <201105031855.p43ItGoP006893@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Tue May  3 18:55:16 2011
New Revision: 221398
URL: http://svn.freebsd.org/changeset/base/221398

Log:
  Document make_dev_alias_p().
  
  MFC after:	2 weeks

Modified:
  head/share/man/man9/make_dev.9

Modified: head/share/man/man9/make_dev.9
==============================================================================
--- head/share/man/man9/make_dev.9	Tue May  3 18:54:18 2011	(r221397)
+++ head/share/man/man9/make_dev.9	Tue May  3 18:55:16 2011	(r221398)
@@ -24,7 +24,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd October 24, 2010
+.Dd May 03, 2011
 .Dt MAKE_DEV 9
 .Os
 .Sh NAME
@@ -33,6 +33,7 @@
 .Nm make_dev_credf ,
 .Nm make_dev_p ,
 .Nm make_dev_alias ,
+.Nm make_dev_alias_p ,
 .Nm destroy_dev ,
 .Nm destroy_dev_sched ,
 .Nm destroy_dev_sched_cb ,
@@ -54,6 +55,8 @@ and DEVFS registration for devices
 .Fn make_dev_p "int flags" "struct cdev **cdev" "struct cdevsw *devsw" "struct ucred *cr" "uid_t uid" "gid_t gid" "int mode" "const char *fmt" ...
 .Ft struct cdev *
 .Fn make_dev_alias "struct cdev *pdev" "const char *fmt" ...
+.Ft int
+.Fn make_dev_alias_p "int flags" "struct cdev **cdev" "struct cdev *pdev" "const char *fmt" ...
 .Ft void
 .Fn destroy_dev "struct cdev *dev"
 .Ft void
@@ -149,6 +152,15 @@ created device will be never destroyed
 return an error if the device name is invalid or already exists
 .El
 .Pp
+Only 
+.Dv MAKEDEV_NOWAIT ,
+.Dv MAKEDEV_WAITOK 
+and
+.Dv MAKEDEV_CHECKNAME
+values are accepted for the
+.Fn make_dev_alias_p
+function.
+.Pp
 The
 .Dv MAKEDEV_WAITOK
 flag is assumed if none of
@@ -214,6 +226,13 @@ It is an error to call
 prior to calling
 .Fn make_dev .
 .Pp
+.Fn make_dev_alias_p
+function is similar to
+.Fn make_dev_alias
+but it takes a pointer to the resulting
+.Ft *cdev
+as an argument and may return an error.
+.Pp
 The
 .Fa cdev
 returned by
@@ -321,6 +340,8 @@ pointer, otherwise it will return
 .Sh ERRORS
 The
 .Fn make_dev_p
+and
+.Fn make_dev_alias_p
 call will fail and the device will be not registered if:
 .Bl -tag -width Er
 .It Bq Er ENOMEM



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105031855.p43ItGoP006893>