summaryrefslogtreecommitdiff
path: root/vxi11_svc.c
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-10 19:51:28 +0900
committerdaniel <danieruru@gmail.com>2013-01-10 19:51:28 +0900
commit845db4b79f9b72592e662a6daa5917f84ff12e04 (patch)
tree4de44da03ac0e7e009c9fec3fe299af2158e442d /vxi11_svc.c
parentbd451ce0f4855bc2dfd8c19b1f17a5cd60eb6650 (diff)
the interrupt channel works now.
Diffstat (limited to 'vxi11_svc.c')
-rw-r--r--vxi11_svc.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/vxi11_svc.c b/vxi11_svc.c
index 96a967f..edc4212 100644
--- a/vxi11_svc.c
+++ b/vxi11_svc.c
@@ -186,48 +186,6 @@ static void device_core_1(struct svc_req *rqstp, register SVCXPRT *transp) {
return;
}
-/*
- static void
- device_intr_1(struct svc_req *rqstp, register SVCXPRT *transp)
- {
- union {
- Device_SrqParms device_intr_srq_1_arg;
- } argument;
- char *result;
- xdrproc_t _xdr_argument, _xdr_result;
- char *(*local)(char *, struct svc_req *);
-
- switch (rqstp->rq_proc) {
- case NULLPROC:
- (void) svc_sendreply (transp, (xdrproc_t) xdr_void, (char *)NULL);
- return;
-
- case device_intr_srq:
- _xdr_argument = (xdrproc_t) xdr_Device_SrqParms;
- _xdr_result = (xdrproc_t) xdr_void;
- local = (char *(*)(char *, struct svc_req *)) device_intr_srq_1_svc;
- break;
-
- default:
- svcerr_noproc (transp);
- return;
- }
- memset ((char *)&argument, 0, sizeof (argument));
- if (!svc_getargs (transp, (xdrproc_t) _xdr_argument, (caddr_t) &argument)) {
- svcerr_decode (transp);
- return;
- }
- result = (*local)((char *)&argument, rqstp);
- if (result != NULL && !svc_sendreply(transp, (xdrproc_t) _xdr_result, result)) {
- svcerr_systemerr (transp);
- }
- if (!svc_freeargs (transp, (xdrproc_t) _xdr_argument, (caddr_t) &argument)) {
- fprintf (stderr, "%s", "unable to free arguments");
- exit (1);
- }
- return;
- }*/
-
void vxi_main() {
printf("VXI service started\n");
@@ -236,7 +194,6 @@ void vxi_main() {
pmap_unset(DEVICE_ASYNC, DEVICE_ASYNC_VERSION);
pmap_unset(DEVICE_CORE, DEVICE_CORE_VERSION);
- //pmap_unset(DEVICE_INTR, DEVICE_INTR_VERSION);
transp = svcudp_create(RPC_ANYSOCK);
if (transp == NULL) {
@@ -251,10 +208,6 @@ void vxi_main() {
fprintf(stderr, "%s", "unable to register (DEVICE_CORE, DEVICE_CORE_VERSION, udp).");
exit(1);
}
- //if (!svc_register(transp, DEVICE_INTR, DEVICE_INTR_VERSION, device_intr_1, IPPROTO_UDP)) {
- // fprintf (stderr, "%s", "unable to register (DEVICE_INTR, DEVICE_INTR_VERSION, udp).");
- // exit(1);
- //}
transp = svctcp_create(RPC_ANYSOCK, 0, 0);
if (transp == NULL) {
@@ -269,10 +222,6 @@ void vxi_main() {
fprintf(stderr, "%s", "unable to register (DEVICE_CORE, DEVICE_CORE_VERSION, tcp).");
exit(1);
}
- //if (!svc_register(transp, DEVICE_INTR, DEVICE_INTR_VERSION, device_intr_1, IPPROTO_TCP)) {
- // fprintf (stderr, "%s", "unable to register (DEVICE_INTR, DEVICE_INTR_VERSION, tcp).");
- // exit(1);
- //}
svc_run();
fprintf(stderr, "%s", "svc_run returned");