client-64bit-file-size-support-20011031
[openafs.git] / src / afs / LINUX / osi_prototypes.h
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  * Exported linux support routines.
12  */
13 #ifndef _OSI_PROTO_H_
14 #define _OSI_PROTO_H_
15
16 /* osi_alloc.c */
17 extern void *osi_linux_alloc(unsigned int size);
18 extern void osi_linux_free(void *addr);
19 extern void osi_linux_free_afs_memory(void);
20 /* Debugging aid */
21 extern void osi_linux_verify_alloced_memory(void);
22
23 /* osi_cred.c */
24 extern cred_t *crget(void);
25 extern void crfree(cred_t *cr);
26 extern cred_t *crdup(cred_t *cr);
27 extern cred_t *crref(void);
28 extern void crset(cred_t *cr);
29
30
31 /* osi_misc.c */
32 extern int osi_lookupname(char *aname, uio_seg_t seg, int followlink,
33                           vnode_t **dirvpp, struct dentry **dpp);
34 extern int osi_InitCacheInfo(char *aname);
35 extern int osi_rdwr(int rw, struct osi_file *file, caddr_t addrp, size_t asize,
36                     size_t *resid);
37 extern void inline  setup_uio(uio_t *uiop, struct iovec *iovecp, char *buf,
38                              afs_offs_t pos, int count, uio_flag_t flag,
39                              uio_seg_t seg);
40 extern int osi_file_uio_rdwr(struct osi_file *osifile, uio_t *uiop, int rw);
41 extern void afs_osi_SetTime(osi_timeval_t *tvp);
42 extern void osi_linux_free_inode_pages(void);
43 extern void check_bad_parent(struct dentry *dp);
44
45 /* osi_vm.c */
46 extern int osi_VM_FlushVCache(struct vcache *avc, int *slept);
47 extern void osi_VM_TryToSmush(struct vcache *avc, struct AFS_UCRED *acred,
48                               int sync);
49 extern void osi_VM_FSyncInval(struct vcache *avc);
50 extern void osi_VM_StoreAllSegments(struct vcache *avc);
51 extern void osi_VM_FlushPages(struct vcache *avc, struct AFS_UCRED *credp);
52 extern void osi_VM_Truncate(struct vcache *avc, int alen,
53                             struct AFS_UCRED *acred);
54
55 /* osi_vfsops.c */
56 extern void set_inode_cache(struct inode *ip, struct vattr *vp);
57
58
59 #endif /* _OSI_PROTO_H_ */