1.1 --- a/libipc/lib/src/map.c Mon Mar 06 00:14:52 2023 +0100
1.2 +++ b/libipc/lib/src/map.c Mon Mar 06 16:04:23 2023 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Capability mapping between tasks.
1.6 *
1.7 - * Copyright (C) 2022 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2022, 2023 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -55,4 +55,13 @@
1.13 return err;
1.14 }
1.15
1.16 +/* Unmap a capability from another task. */
1.17 +
1.18 +long ipc_unmap_capability(l4_cap_idx_t task, l4_cap_idx_t mapped_cap)
1.19 +{
1.20 + return l4_error(l4_task_unmap(task,
1.21 + l4_obj_fpage(mapped_cap, 0, L4_CAP_FPAGE_RWSD),
1.22 + L4_FP_ALL_SPACES));
1.23 +}
1.24 +
1.25 // vim: tabstop=2 expandtab shiftwidth=2