venus: Remove dedebug
[openafs.git] / src / afs / UKERNEL / afsd_uafs.c
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /*
11  * User space client glue for the afsd cache manager interface
12  */
13
14 #include <afsconfig.h>
15 #include <afs/param.h>
16
17 #ifdef UKERNEL
18
19 #include "afs/sysincludes.h"
20 #include "afsincludes.h"
21 #include "afs_usrops.h"
22 #include "afs/afsutil.h"
23 #include "afs/afs_args.h"
24 #include "afsd/afsd.h"
25
26
27 void
28 afsd_mount_afs(const char *rn, const char *mountdir)
29 {
30     uafs_setMountDir(mountdir);
31     uafs_mount();
32 }
33
34 void
35 afsd_set_rx_rtpri(void)
36 {
37     /* noop */
38 }
39 void
40 afsd_set_afsd_rtpri(void)
41 {
42     /* noop */
43 }
44
45 int
46 afsd_check_mount(const char *rn, const char *mountdir)
47 {
48     /* libuafs could provide a callback of some kind to let the user code
49      * specify a "is this mount point valid?" function, but for now there's
50      * no need for it. */
51     return 0;
52 }
53
54 int
55 afsd_call_syscall(struct afsd_syscall_args *args)
56 {
57     return call_syscall(AFSCALL_CALL, args->syscall, args->params[0],
58                         args->params[1], args->params[2], args->params[3]);
59 }
60
61 int
62 afsd_fork(int wait, afsd_callback_func cbf, void *rock)
63 {
64     int code;
65     usr_thread_t tid;
66     usr_thread_create(&tid, cbf, rock);
67     if (wait) {
68         code = usr_thread_join(tid, NULL);
69     } else {
70         code = usr_thread_detach(tid);
71     }
72     return code;
73 }
74
75 int
76 afsd_daemon(int nochdir, int noclose)
77 {
78     /* noop */
79     return 0;
80 }
81
82 #endif /* UKERNEL */