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"
26 extern int call_syscall(long, long, long, long, long, long);
29 afsd_mount_afs(const char *rn
, const char *mountdir
)
31 uafs_setMountDir(mountdir
);
36 afsd_set_rx_rtpri(void)
41 afsd_set_afsd_rtpri(void)
47 afsd_check_mount(const char *rn
, const char *mountdir
)
49 /* libuafs could provide a callback of some kind to let the user code
50 * specify a "is this mount point valid?" function, but for now there's
56 afsd_call_syscall(struct afsd_syscall_args
*args
)
58 return call_syscall(AFSCALL_CALL
, args
->syscall
, args
->params
[0],
59 args
->params
[1], args
->params
[2], args
->params
[3]);
63 afsd_fork(int wait
, afsd_callback_func cbf
, void *rock
)
67 usr_thread_create(&tid
, cbf
, rock
);
69 code
= usr_thread_join(tid
, NULL
);
71 code
= usr_thread_detach(tid
);
77 afsd_daemon(int nochdir
, int noclose
)