]> git.saurik.com Git - apple/xnu.git/blob - bsd/miscfs/devfs/devfs_proto.h
xnu-344.21.73.tar.gz
[apple/xnu.git] / bsd / miscfs / devfs / devfs_proto.h
1 /*
2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /* THIS FILE HAS BEEN PRODUCED AUTOMATICALLY */
26 #ifndef __DEVFS_DEVFS_PROTO_H__
27 #define __DEVFS_DEVFS_PROTO_H__
28
29 #include <sys/appleapiopts.h>
30
31 #ifdef __APPLE_API_PRIVATE
32 int devfs_sinit(void);
33 devdirent_t * dev_findname(devnode_t * dir,char *name);
34 int dev_add_name(char * name, devnode_t * dirnode, devdirent_t * back,
35 devnode_t * dnp, devdirent_t * *dirent_pp);
36 int dev_add_node(int entrytype, devnode_type_t * typeinfo, devnode_t * proto,
37 devnode_t * *dn_pp, struct devfsmount *dvm);
38 void devnode_free(devnode_t * dnp);
39 void devfs_dn_free(devnode_t * dnp);
40 int devfs_propogate(devdirent_t * parent,devdirent_t * child);
41 int dev_dup_plane(struct devfsmount *devfs_mp_p);
42 void devfs_free_plane(struct devfsmount *devfs_mp_p);
43 int dev_dup_entry(devnode_t * parent, devdirent_t * back, devdirent_t * *dnm_pp,
44 struct devfsmount *dvm);
45 int dev_free_name(devdirent_t * dirent_p);
46 void dev_free_hier(devdirent_t * dirent_p);
47 int devfs_dntovn(devnode_t * dnp, struct vnode **vn_pp, struct proc * p);
48 int dev_add_entry(char *name, devnode_t * parent, int type, devnode_type_t * typeinfo,
49 devnode_t * proto, struct devfsmount *dvm, devdirent_t * *nm_pp);
50 int devfs_mount(struct mount *mp, char *path, caddr_t data,
51 struct nameidata *ndp, struct proc *p);
52
53 #endif /* __APPLE_API_PRIVATE */
54 #endif /* __DEVFS_DEVFS_PROTO_H__ */
55 /* THIS FILE PRODUCED AUTOMATICALLY */
56 /* DO NOT EDIT (see reproto.sh) */