]> git.saurik.com Git - apple/xnu.git/blame - bsd/miscfs/devfs/devfs_proto.h
xnu-517.12.7.tar.gz
[apple/xnu.git] / bsd / miscfs / devfs / devfs_proto.h
CommitLineData
1c79356b 1/*
9bccf70c 2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
1c79356b
A
3 *
4 * @APPLE_LICENSE_HEADER_START@
e5568f75
A
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
1c79356b
A
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
e5568f75
A
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 *
1c79356b
A
20 * @APPLE_LICENSE_HEADER_END@
21 */
22/* THIS FILE HAS BEEN PRODUCED AUTOMATICALLY */
9bccf70c
A
23#ifndef __DEVFS_DEVFS_PROTO_H__
24#define __DEVFS_DEVFS_PROTO_H__
25
26#include <sys/appleapiopts.h>
27
28#ifdef __APPLE_API_PRIVATE
1c79356b
A
29int devfs_sinit(void);
30devdirent_t * dev_findname(devnode_t * dir,char *name);
31int dev_add_name(char * name, devnode_t * dirnode, devdirent_t * back,
32 devnode_t * dnp, devdirent_t * *dirent_pp);
33int dev_add_node(int entrytype, devnode_type_t * typeinfo, devnode_t * proto,
34 devnode_t * *dn_pp, struct devfsmount *dvm);
1c79356b
A
35void devnode_free(devnode_t * dnp);
36void devfs_dn_free(devnode_t * dnp);
37int devfs_propogate(devdirent_t * parent,devdirent_t * child);
38int dev_dup_plane(struct devfsmount *devfs_mp_p);
39void devfs_free_plane(struct devfsmount *devfs_mp_p);
40int dev_dup_entry(devnode_t * parent, devdirent_t * back, devdirent_t * *dnm_pp,
41 struct devfsmount *dvm);
42int dev_free_name(devdirent_t * dirent_p);
43void dev_free_hier(devdirent_t * dirent_p);
44int devfs_dntovn(devnode_t * dnp, struct vnode **vn_pp, struct proc * p);
45int dev_add_entry(char *name, devnode_t * parent, int type, devnode_type_t * typeinfo,
46 devnode_t * proto, struct devfsmount *dvm, devdirent_t * *nm_pp);
47int devfs_mount(struct mount *mp, char *path, caddr_t data,
48 struct nameidata *ndp, struct proc *p);
9bccf70c
A
49
50#endif /* __APPLE_API_PRIVATE */
51#endif /* __DEVFS_DEVFS_PROTO_H__ */
1c79356b
A
52/* THIS FILE PRODUCED AUTOMATICALLY */
53/* DO NOT EDIT (see reproto.sh) */