2 * Copyright 2000, International Business Machines Corporation and others.
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
11 * User space client glue for the afsd cache manager interface
14 #include <afsconfig.h>
15 #include <afs/param.h>
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"
28 afsd_mount_afs(const char *rn, const char *mountdir)
30 uafs_setMountDir(mountdir);
35 afsd_set_rx_rtpri(void)
40 afsd_set_afsd_rtpri(void)
46 afsd_check_mount(const char *rn, const char *mountdir)
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
55 afsd_call_syscall(struct afsd_syscall_args *args)
57 return call_syscall(AFSCALL_CALL, args->syscall, args->params[0],
58 args->params[1], args->params[2], args->params[3]);
62 afsd_fork(int wait, afsd_callback_func cbf, void *rock)
66 usr_thread_create(&tid, cbf, rock);
68 code = usr_thread_join(tid, NULL);
70 code = usr_thread_detach(tid);
76 afsd_daemon(int nochdir, int noclose)