VM: full munmap
[minix.git] / lib / libsys / pci_del_acl.c
blobcaab0344670d69c5738dfd80753a4346a112fe76
1 /*
2 pci_del_acl.c
3 */
5 #include "pci.h"
6 #include "syslib.h"
7 #include <unistd.h>
8 #include <minix/rs.h>
9 #include <minix/ds.h>
10 #include <minix/sysutil.h>
12 /*===========================================================================*
13 * pci_del_acl *
14 *===========================================================================*/
15 int pci_del_acl(proc_ep)
16 endpoint_t proc_ep;
18 int r;
19 message m;
20 endpoint_t endpoint;
22 if (pci_procnr == ANY)
24 r= ds_retrieve_label_endpt("pci", &endpoint);
25 if (r != 0)
27 panic("pci_del_acl: ds_retrieve_label_endpt failed for 'pci': %d", r);
29 pci_procnr = endpoint;
33 m.m_type= BUSC_PCI_DEL_ACL;
34 m.m1_i1= proc_ep;
36 r= sendrec(pci_procnr, &m);
37 if (r != 0)
38 panic("pci_del_acl: can't talk to PCI: %d", r);
40 return m.m_type;