blob: 5d987d9153bbea7e5388e6f96d21e5a2cda983dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
%{
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/dcache.h>
#include <linux/sunrpc/sched.h>
#include <linux/sunrpc/clnt.h>
#include <linux/nfs_fs.h>
%}
function nfs_unlinkdata:long(calldata)
%{
struct nfs_unlinkdata {
struct nfs_unlinkdata *next;
struct dentry *dir, *dentry;
struct qstr name;
struct rpc_task *task;
struct rpc_cred *cred;
unsigned int count;
};
//struct nfs_unlinkdata *cd = (struct nfs_unlinkdata *)(long) kread(&(THIS->calldata));
struct nfs_unlinkdata *cd = (struct nfs_unlinkdata *)(long) THIS->calldata;
printk("nfs_unlinkdata: name.len %d\n", cd->name.len);
//CATCH_DEREF_FAULT();
%}
|