%{ #include #include #include #include #include #include #include %} function nfs4_callback:string(_stp:long) %{ struct nfs4_stateid *stp = (struct nfs4_stateid *) (long) kread(&(THIS->_stp)); struct nfs4_stateowner *sop = (struct nfs4_stateowner *) (long) kread(&stp->st_stateowner); struct nfs4_client *so_client = (struct nfs4_client *) (long)kread(&sop->so_client); struct nfs4_callback *cb = (struct nfs4_callback *) &so_client->cl_callback; char buf[MAXSTRINGLEN]; int cc=0; snprintf(buf+cc, MAXSTRINGLEN, "cb: cb_set %d so_confirmed %d", cb->cb_set.counter, sop->so_confirmed); cc = strlen(buf); snprintf(THIS->__retvalue, MAXSTRINGLEN, "%s", buf); CATCH_DEREF_FAULT(); %}