Home
last modified time | relevance | path

Searched full:immutable (Results 1 – 25 of 174) sorted by relevance

1234567

/linux/rust/zerocopy/src/
H A Dimpls.rs23 // - `Immutable`: `()` self-evidently does not contain any `UnsafeCell`s.
32 unsafe_impl!((): Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned);
37 // - `Immutable`: These types self-evidently do not contain any `UnsafeCell`s.
68 unsafe_impl!(u8: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned);
69 unsafe_impl!(i8: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned);
71 unsafe_impl!(u16: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes);
72 unsafe_impl!(i16: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes);
73 unsafe_impl!(u32: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes);
74 unsafe_impl!(i32: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes);
75 unsafe_impl!(u64: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes);
[all …]
H A Ddeprecated.rs20 T: KnownLayout + Immutable + ?Sized,
34 T: KnownLayout + Immutable + ?Sized,
48 T: KnownLayout + Immutable + ?Sized,
62 T: Unaligned + KnownLayout + Immutable + ?Sized,
79 T: Unaligned + KnownLayout + Immutable + ?Sized,
96 T: Unaligned + KnownLayout + Immutable + ?Sized,
113 T: Immutable,
126 T: Unaligned + Immutable,
142 T: FromBytes + Immutable,
155 T: FromBytes + IntoBytes + Immutable,
[all …]
H A Dmacros.rs195 /// Safely transmutes a mutable or immutable reference of one type to an
196 /// immutable reference of another type of the same size and compatible
205 /// Src: IntoBytes + Immutable + ?Sized,
206 /// Dst: FromBytes + Immutable + ?Sized,
248 /// # use zerocopy::{transmute_ref, FromBytes, IntoBytes, Immutable};
251 /// Src: IntoBytes + Immutable,
252 /// Dst: FromBytes + Immutable,
262 /// # use zerocopy::{transmute_ref, FromBytes, IntoBytes, Immutable};
266 /// # Src: IntoBytes + Immutable,
267 /// # Dst: FromBytes + Immutable,
[all …]
H A Dsplit_at.rs114 /// #[derive(SplitAt, FromBytes, KnownLayout, Immutable)]
132 /// // Use the `Immutable` bound on `Packet` to prove that it's okay to
314 /// Produces the split parts of `self`, using [`Immutable`] to ensure that
323 /// #[derive(SplitAt, FromBytes, KnownLayout, Immutable)]
341 /// // Use the `Immutable` bound on `Packet` to prove that it's okay to
371 T: Immutable, in via_immutable() argument
386 /// #[derive(SplitAt, FromBytes, KnownLayout, Immutable, IntoBytes)]
435 /// #[derive(SplitAt, FromBytes, KnownLayout, Immutable, Unaligned)]
480 /// Note that this check is overly conservative if `T` is [`Immutable`]; for
490 /// #[derive(SplitAt, FromBytes, KnownLayout, Immutable, Debug)]
[all …]
H A Dlib.rs60 //! - [`Immutable`] indicates that a type is free from interior mutability,
76 //! mutable or immutable reference of one type to an immutable reference of
1195 type Tag: Immutable;
1366 /// # use zerocopy_derive::{FromZeros, Immutable};
1383 /// #[derive(FromZeros, Immutable)]
1451 /// Analyzes whether a type is [`Immutable`].
1454 /// the [safety conditions] of `Immutable` and implements `Immutable` if it is
1459 /// # use zerocopy_derive::Immutable;
1460 /// #[derive(Immutable)]
1467 /// #[derive(Immutable)]
[all …]
H A Dref.rs40 /// #[derive(FromBytes, IntoBytes, KnownLayout, Immutable, Unaligned)]
49 /// #[derive(FromBytes, IntoBytes, KnownLayout, Immutable, Unaligned)]
274 T: KnownLayout + Immutable + ?Sized,
300 /// #[derive(Immutable, KnownLayout)]
326 T: KnownLayout + Immutable + ?Sized,
354 /// #[derive(Immutable, KnownLayout)]
419 /// #[derive(Immutable, KnownLayout)]
456 T: KnownLayout<PointerMetadata = usize> + Immutable + ?Sized,
481 /// #[derive(Immutable, KnownLayout)]
507 T: KnownLayout<PointerMetadata = usize> + Immutable + ?Sized,
[all …]
H A Dwrappers.rs57 /// # #[derive(FromBytes, KnownLayout, Immutable, Unaligned)] #[repr(C)] struct Mac([u8; 6]);
60 /// #[derive(TryFromBytes, KnownLayout, Immutable)]
71 /// #[derive(TryFromBytes, KnownLayout, Immutable, Unaligned)]
116 #[cfg_attr(any(feature = "derive", test), derive(Immutable, FromBytes, IntoBytes, Unaligned))]
143 // - `Immutable`: `Unalign<T>` has the same fields as `T`, so it permits
151 impl_or_verify!(T: Immutable => Immutable for Unalign<T>);
611 /// [`Immutable`] regardless of whether `T` is.
616 /// [`Immutable`]: crate::Immutable
686 unsafe_impl!(T: ?Sized => Immutable for ReadOnly<T>);
718 impl<'a, T: ?Sized + Immutable> From<&'a T> for &'a ReadOnly<T> {
[all …]
/linux/Documentation/gpu/rfc/
H A Dcolor_pipeline.rst147 …├─ "TYPE": immutable enum {1D enumerated curve, 1D LUT, 3x3 matrix, 3x4 matrix, 3D LUT, etc.} = 1D…
150 └─ "NEXT": immutable color operation ID = 43
154 …├─ "TYPE": immutable enum {1D enumerated curve, 1D LUT, 3x3 matrix, 3x4 matrix, 3D LUT, etc.} = 1D…
156 ├─ "SIZE": immutable range = 4096
158 └─ "NEXT": immutable color operation ID = 0
162 …├─ "TYPE": immutable enum {1D enumerated curve, 1D LUT, 3x3 matrix, 3x4 matrix, 3D LUT, etc.} = 3D…
164 ├─ "SIZE": immutable range = 17
166 └─ "NEXT": immutable color operation ID = 73
219 ├─ "TYPE": immutable enum {Overlay, Primary, Cursor} = Primary
244 ├─ "TYPE" (immutable) = Primary
[all …]
/linux/include/uapi/linux/
H A Dsecurebits.h20 #define SECURE_NOROOT_LOCKED 1 /* make bit-0 immutable */
30 #define SECURE_NO_SETUID_FIXUP_LOCKED 3 /* make bit-2 immutable */
42 #define SECURE_KEEP_CAPS_LOCKED 5 /* make bit-4 immutable */
49 #define SECURE_NO_CAP_AMBIENT_RAISE_LOCKED 7 /* make bit-6 immutable */
57 #define SECURE_EXEC_RESTRICT_FILE_LOCKED 9 /* make bit-8 immutable */
65 #define SECURE_EXEC_DENY_INTERACTIVE_LOCKED 11 /* make bit-10 immutable */
/linux/rust/zerocopy-derive/derive/
H A Dmod.rs21 ImplBlockBuilder::new(ctx, strct, Trait::Immutable, FieldBounds::ALL_SELF).build() in derive_immutable()
24 ImplBlockBuilder::new(ctx, enm, Trait::Immutable, FieldBounds::ALL_SELF).build() in derive_immutable()
27 ImplBlockBuilder::new(ctx, unn, Trait::Immutable, FieldBounds::ALL_SELF).build() in derive_immutable()
46 Self: #zerocopy_crate::IntoBytes + #zerocopy_crate::Immutable, in derive_hash()
74 Self: #zerocopy_crate::IntoBytes + #zerocopy_crate::Immutable, in derive_eq()
87 Self: #zerocopy_crate::IntoBytes + #zerocopy_crate::Immutable, in derive_eq()
/linux/rust/zerocopy/src/pointer/
H A Dtransmute.rs24 FromBytes, Immutable, IntoBytes, Unalign,
68 /// - `Src: Immutable` and `Dst: Immutable`
93 /// - `Src: Immutable` and `Dst: Immutable`, and so neither `src` nor `dst`
135 // - Aliasing is `Shared`, `Src: Immutable`, and `Dst: Immutable`, in which
149 // - `Src: Immutable` and `Dst: Immutable`
165 // - Forwards transmutation: Since aliasing is `Shared` and `Src: Immutable`,
167 // - Reverse transmutation: Since aliasing is `Shared` and `Dst: Immutable`,
170 // behavior: `Src: Immutable` and `Dst: Immutable`
176 Src: Immutable + ?Sized,
177 Dst: Immutable + ?Sized,
/linux/Documentation/ABI/stable/
H A Dsysfs-bus-firewire48 Read-only and immutable.
60 Read-only. Immutable during the unit device's lifetime.
79 Immutable during the unit device's lifetime.
126 Read-only attribute, immutable during the target's lifetime.
/linux/Documentation/ABI/testing/
H A Dsysfs-devices-virtual-misc-tdx_guest24 (RO) MRCONFIGID - 48-byte immutable storage typically used for
33 (RO) MROWNER - 48-byte immutable storage typically used for
41 (RO) MROWNERCONFIG - 48-byte immutable storage typically used
/linux/tools/testing/selftests/kvm/x86/
H A Dvmx_pmu_caps_test.c38 * The LBR format and most PEBS features are immutable, all other features are
82 * PERF_CAPABILITIES is immutable after KVM_RUN.
144 * Verify KVM rejects attempts to set unsupported and/or immutable features in
160 TEST_ASSERT(!r, "%s immutable feature 0x%llx (bit %d) didn't fail", in KVM_ONE_VCPU_TEST()
/linux/drivers/md/dm-vdo/indexer/
H A Dchapter-index.h17 * immutable because the contents of a closed chapter can never change, and the immutable structure
H A Ddelta-index.h23 * A delta_index can either be mutable or immutable depending on its expected use. The immutable
112 * page to be treated as an immutable delta_index. We use the delta_zone field to treat the chapter
178 /* Temporary delta list for immutable indices */
/linux/Documentation/userspace-api/media/mediactl/
H A Dmedia-ioc-setup-link.rst41 enable/disable a link. Links marked with the ``IMMUTABLE`` link flag can
64 non-existing link, or the link is immutable and an attempt to modify
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_so.c65 struct vmw_resource *ctx; /* Immutable */
66 struct vmw_resource *srf; /* Immutable */
67 struct vmw_resource *cotable; /* Immutable */
70 unsigned view_type; /* Immutable */
71 unsigned view_id; /* Immutable */
72 u32 cmd_size; /* Immutable */
74 u32 cmd[]; /* Immutable */
H A Dvmwgfx_cmdbuf.c73 * Immutable.
74 * @dev_priv: Pointer to the device private struct. Immutable.
82 * able to make a contigous coherent DMA memory allocation, @handle. Immutable.
84 * a contigous coherent DMA memory allocation. Immutable.
88 * @default_size: Default size for the @cur command buffer. Immutable.
90 * handle. Immutable.
102 * allocation. Immutable.
106 * false. Immutable.
107 * @size: The size of the command buffer space. Immutable.
/linux/Documentation/admin-guide/media/
H A Dimx7.rst200 <- "ov5640 1-003c":0 [ENABLED,IMMUTABLE]
203 -> "csi capture":0 [ENABLED,IMMUTABLE]
209 <- "csi":1 [ENABLED,IMMUTABLE]
216 -> "csi":0 [ENABLED,IMMUTABLE]
/linux/tools/testing/selftests/efivarfs/
H A Dopen-unlink.c13 static int set_immutable(const char *path, int immutable) in set_immutable() argument
32 if (immutable) in set_immutable()
/linux/rust/kernel/
H A Drbtree.rs260 /// Returns an immutable cursor over the tree nodes, starting with the smallest key.
788 /// A bidirectional immutable cursor over the tree nodes, sorted by key. This is a simpler
819 // SAFETY: The immutable cursor gives out shared access to `K` and `V` so if `K` and `V` can be
823 // SAFETY: The immutable cursor gives out shared access to `K` and `V` so if `K` and `V` can be
832 // - We have an immutable reference by the function signature.
839 /// - The caller has immutable access to `node` for the duration of `'b`. in to_key_value()
867 // - By the function signature, we have an immutable reference to `self`. in peek()
887 // The cursor only gives out immutable references to the keys, but since it has exclusive access to
892 // SAFETY: The [`CursorMut`] gives out immutable references to `K` and mutable references to `V`,
901 // - We have an immutable referenc in current()
[all...]
/linux/drivers/infiniband/hw/qedr/
H A Dmain.c85 struct ib_port_immutable *immutable) in qedr_roce_port_immutable() argument
94 immutable->pkey_tbl_len = attr.pkey_tbl_len; in qedr_roce_port_immutable()
95 immutable->gid_tbl_len = attr.gid_tbl_len; in qedr_roce_port_immutable()
96 immutable->core_cap_flags = RDMA_CORE_PORT_IBA_ROCE | in qedr_roce_port_immutable()
98 immutable->max_mad_size = IB_MGMT_MAD_SIZE; in qedr_roce_port_immutable()
104 struct ib_port_immutable *immutable) in qedr_iw_port_immutable() argument
113 immutable->gid_tbl_len = 1; in qedr_iw_port_immutable()
114 immutable->core_cap_flags = RDMA_CORE_PORT_IWARP; in qedr_iw_port_immutable()
115 immutable->max_mad_size = 0; in qedr_iw_port_immutable()
/linux/drivers/md/persistent-data/
H A DKconfig8 Library providing immutable on-disk data structure support for
/linux/arch/x86/virt/svm/
H A Dsev.c45 u8 immutable :1, member
63 immutable : 1, member
763 e->immutable = e_raw->immutable; in get_rmpentry()
1036 int rmp_make_private(u64 pfn, u64 gpa, enum pg_level level, u32 asid, bool immutable) in rmp_make_private() argument
1043 state.immutable = immutable; in rmp_make_private()

1234567