summaryrefslogtreecommitdiffstats
path: root/tapset/nfs_client.stp
blob: 5f3fb7320ae0c54db883f02148718729f4e48a29 (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
26
27

%{
#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>
#include <linux/nfs_mount.h>
%}


function nfs_client:string(_clp:long)
%{
	struct nfs_client *clp = (struct nfs_client *)(long) kread(&(THIS->_clp));
	char buf[MAXSTRINGLEN], *str, octet[10];
	int cc=0, i, j;

	unsigned short ofs, len;

    sprintf(buf+cc, "clp: %p: fscache %p ", clp, clp->fscache);
	cc = strlen(buf);

	snprintf(THIS->__retvalue, MAXSTRINGLEN, "%s", buf); 

	CATCH_DEREF_FAULT();
%}