]> git.saurik.com Git - apple/xnu.git/blob - bsd/miscfs/devfs/devfs_proto.h
77e9b1c2fb00bdf0ebde5cd535623529ec24cfba
[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 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22 /* THIS FILE HAS BEEN PRODUCED AUTOMATICALLY */
23 #ifndef __DEVFS_DEVFS_PROTO_H__
24 #define __DEVFS_DEVFS_PROTO_H__
25
26 #include <sys/appleapiopts.h>
27
28 #ifdef __APPLE_API_PRIVATE
29 int devfs_sinit(void);
30 devdirent_t * dev_findname(devnode_t * dir,char *name);
31 int dev_add_name(char * name, devnode_t * dirnode, devdirent_t * back,
32 devnode_t * dnp, devdirent_t * *dirent_pp);
33 int dev_add_node(int entrytype, devnode_type_t * typeinfo, devnode_t * proto,
34 devnode_t * *dn_pp, struct devfsmount *dvm);
35 void devnode_free(devnode_t * dnp);
36 int dev_dup_plane(struct devfsmount *devfs_mp_p);
37 void devfs_free_plane(struct devfsmount *devfs_mp_p);
38 int dev_free_name(devdirent_t * dirent_p);
39 int devfs_dntovn(devnode_t * dnp, struct vnode **vn_pp, struct proc * p);
40 int dev_add_entry(char *name, devnode_t * parent, int type, devnode_type_t * typeinfo,
41 devnode_t * proto, struct devfsmount *dvm, devdirent_t * *nm_pp);
42 int devfs_mount(struct mount *mp, vnode_t devvp, user_addr_t data,
43 vfs_context_t context);
44
45 #endif /* __APPLE_API_PRIVATE */
46 #endif /* __DEVFS_DEVFS_PROTO_H__ */
47 /* THIS FILE PRODUCED AUTOMATICALLY */
48 /* DO NOT EDIT (see reproto.sh) */