Skip to content

Commit

Permalink
less ignored and trusted
Browse files Browse the repository at this point in the history
  • Loading branch information
enjhnsn2 committed Aug 1, 2024
1 parent 154163a commit 0d7288b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions kernel/src/grant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ impl<'a> EnteredGrantKernelManagedLayout<'a> {
/// not be any other `EnteredGrantKernelManagedLayout` for
/// the given `base_ptr` at the same time, otherwise multiple mutable
/// references to the same upcall/allow slices could be created.
#[flux::trusted]
unsafe fn initialize_from_counts(
base_ptr: NonNull<u8>,
upcalls_num_val: UpcallItems,
Expand Down Expand Up @@ -575,7 +574,6 @@ pub struct GrantKernelData<'a> {
impl<'a> GrantKernelData<'a> {
/// Create a `GrantKernelData` object to provide a handle for capsules to
/// call Upcalls.
#[flux::trusted]
fn new(
upcalls: &'a [SavedUpcall],
allow_ro: &'a [SavedAllowRo],
Expand Down Expand Up @@ -679,7 +677,6 @@ impl<'a> GrantKernelData<'a> {
/// be return. This returns a process::Error to allow for easy chaining of
/// this function with the `ReadWriteProcessBuffer::enter()` function with
/// `and_then`.
#[flux::trusted]
pub fn get_readwrite_processbuffer(
&self,
allow_rw_num: usize,
Expand Down
2 changes: 0 additions & 2 deletions kernel/src/kernel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ impl Kernel {

/// Helper function that moves all non-generic portions of process_map_or
/// into a non-generic function to reduce code bloat from monomorphization.
#[flux::trusted]
pub(crate) fn get_process(&self, processid: ProcessId) -> Option<&dyn process::Process> {
// We use the index in the `processid` so we can do a direct lookup.
// However, we are not guaranteed that the app still exists at that
Expand Down Expand Up @@ -258,7 +257,6 @@ impl Kernel {
///
/// This is needed for `ProcessId` itself to implement the `.index()` command to
/// verify that the referenced app is still at the correct index.
#[flux::trusted]
pub(crate) fn processid_is_valid(&self, processid: &ProcessId) -> bool {
self.processes.get(processid.index).map_or(false, |p| {
p.map_or(false, |process| process.processid().id() == processid.id())
Expand Down
2 changes: 0 additions & 2 deletions kernel/src/processbuffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ impl ReadOnlyProcessBufferRef<'_> {
/// [`ReadOnlyProcessBuffer::new_external`]. The derived lifetime can
/// help enforce the invariant that this incoming pointer may only
/// be access for a certain duration.
#[flux::ignore]
pub(crate) unsafe fn new(ptr: FluxPtrU8Mut, len: usize, process_id: ProcessId) -> Self {
Self {
buf: ReadOnlyProcessBuffer::new(ptr, len, process_id),
Expand Down Expand Up @@ -629,7 +628,6 @@ impl ReadWriteProcessBufferRef<'_> {
/// [`ReadWriteProcessBuffer::new_external`]. The derived lifetime can
/// help enforce the invariant that this incoming pointer may only
/// be access for a certain duration.
#[flux::ignore]
pub(crate) unsafe fn new(ptr: FluxPtrU8Mut, len: usize, process_id: ProcessId) -> Self {
Self {
buf: ReadWriteProcessBuffer::new(ptr, len, process_id),
Expand Down

0 comments on commit 0d7288b

Please sign in to comment.