2 * (C) 2001 Clemson University and The University of Chicago
4 * See COPYING in top-level directory.
8 * Definitions of downcalls used in Linux kernel module.
15 * Sanitized the device-client core interaction
16 * for clean 32-64 bit usage
18 struct pvfs2_io_response {
22 struct pvfs2_lookup_response {
23 struct pvfs2_object_kref refn;
26 struct pvfs2_create_response {
27 struct pvfs2_object_kref refn;
30 struct pvfs2_symlink_response {
31 struct pvfs2_object_kref refn;
34 struct pvfs2_getattr_response {
35 struct PVFS_sys_attr_s attributes;
36 char link_target[PVFS2_NAME_LEN];
39 struct pvfs2_mkdir_response {
40 struct pvfs2_object_kref refn;
44 * duplication of some system interface structures so that I don't have
45 * to allocate extra memory
50 struct pvfs2_khandle khandle;
53 struct pvfs2_statfs_response {
61 struct pvfs2_fs_mount_response {
64 struct pvfs2_khandle root_khandle;
67 /* the getxattr response is the attribute value */
68 struct pvfs2_getxattr_response {
71 char val[PVFS_MAX_XATTR_VALUELEN];
74 /* the listxattr response is an array of attribute names */
75 struct pvfs2_listxattr_response {
79 char key[PVFS_MAX_XATTR_LISTLEN * PVFS_MAX_XATTR_NAMELEN];
82 __s32 lengths[PVFS_MAX_XATTR_LISTLEN];
85 struct pvfs2_param_response {
89 #define PERF_COUNT_BUF_SIZE 4096
90 struct pvfs2_perf_count_response {
91 char buffer[PERF_COUNT_BUF_SIZE];
94 #define FS_KEY_BUF_SIZE 4096
95 struct pvfs2_fs_key_response {
98 char fs_key[FS_KEY_BUF_SIZE];
101 struct pvfs2_downcall_s {
104 /* currently trailer is used only by readdir */
109 struct pvfs2_io_response io;
110 struct pvfs2_lookup_response lookup;
111 struct pvfs2_create_response create;
112 struct pvfs2_symlink_response sym;
113 struct pvfs2_getattr_response getattr;
114 struct pvfs2_mkdir_response mkdir;
115 struct pvfs2_statfs_response statfs;
116 struct pvfs2_fs_mount_response fs_mount;
117 struct pvfs2_getxattr_response getxattr;
118 struct pvfs2_listxattr_response listxattr;
119 struct pvfs2_param_response param;
120 struct pvfs2_perf_count_response perf_count;
121 struct pvfs2_fs_key_response fs_key;
125 struct pvfs2_readdir_response_s {
127 __u64 directory_version;
129 __u32 pvfs_dirent_outcount;
130 struct pvfs2_dirent *dirent_array;
133 #endif /* __DOWNCALL_H */