Lines Matching refs:N
681 pub struct AttributeList<const N: usize, Data>(
684 UnsafeCell<[*mut kernel::ffi::c_void; N]>,
689 unsafe impl<const N: usize, Data> Send for AttributeList<N, Data> {}
692 unsafe impl<const N: usize, Data> Sync for AttributeList<N, Data> {}
694 impl<const N: usize, Data> AttributeList<N, Data> {
701 Self(UnsafeCell::new([core::ptr::null_mut(); N]), PhantomData) in new()
716 const { assert!(I < N - 1, "Invalid attribute index") }; in add()
747 pub const fn new_with_child_ctor<const N: usize, Child>(
749 attributes: &'static AttributeList<N, Data>,
768 pub const fn new<const N: usize>(
770 attributes: &'static AttributeList<N, Data>,
946 const N: usize = $cnt; consts
957 .add::<N, $attr, _>(&[< $data:upper _ $name:upper _ATTR >])
1009 const N: usize = $cnt + 1usize; consts
1013 $crate::configfs::AttributeList<N, $data> =
1022 $crate::configfs::ItemType::<$container, $data>::new::<N>(
1031 new_with_child_ctor::<N, $child>(