| /linux/rust/kernel/ |
| H A D | faux.rs | 77 /// - This object is proof that the object described by this `Registration` is bound to a device. implementation 80 pub struct Registration(NonNull<bindings::faux_device>); 82 impl Registration { 111 impl AsRef<Device<device::Bound>> for Registration { 121 // - `mem::forget(Registration)` is not a problem; if the `Registration` is leaked, the faux 127 impl Drop for Registration { 138 unsafe impl Send for Registration {} 143 unsafe impl Sync for Registration {} 22 pub struct Registration(NonNull<bindings::faux_device>); global() struct 24 impl Registration { global() implementation 53 impl AsRef<device::Device> for Registration { global() implementation 61 impl Drop for Registration { global() implementation 72 unsafe impl Send for Registration {} global() implementation
|
| H A D | driver.rs | 79 //! # Driver Registration 85 //! [`Registration`] type. 88 //! creates a kernel module with exactly one [`Registration`] for the bus specific adapter. 174 /// A [`Registration`] is a generic type that represents the registration of some driver type (e.g. 175 /// `bindings::pci_driver`). Therefore a [`Registration`] must be initialized with a type that 179 ///Once the `Registration` structure is dropped, the driver is unregistered. 181 pub struct Registration<T: RegistrationOps> { 186 // SAFETY: `Registration` has no fields or methods accessible via `&Registration`, so it is safe to in post_unbind_callback() 188 unsafe impl<T: RegistrationOps> Sync for Registration< in post_unbind_callback() 171 pub struct Registration<T: RegistrationOps> { global() struct 176 regRegistration global() argument 178 unsafe impl<T: RegistrationOps> Sync for Registration<T> {} global() implementation 182 unsafe impl<T: RegistrationOps> Send for Registration<T> {} global() implementation 184 impl<T: RegistrationOps + 'static> Registration<T> { global() implementation 238 impl<T: RegistrationOps> PinnedDrop for Registration<T> { global() implementation [all...] |
| H A D | auxiliary.rs | 285 // SAFETY: `ptr` is non-null and was set via `into_foreign()` in `Registration::new()`; 296 // `Registration::drop()` calls `from_foreign()`. in inc_ref() 312 /// [`Registration::new()`]. in as_ref() 337 /// [`Registration::new()`]. 361 // SAFETY: `adev` points to the memory that has been allocated in `Registration::new`, via in new() 445 pub struct Registration<'a, F: ForLt + 'static> { 450 impl<'a, F: ForLt> Registration<'a, F> 461 /// The caller must not `mem::forget()` the returned [`Registration`] or otherwise prevent its 465 /// If the registration data is `'static`, use the safe [`Registration::new()`] instead. 484 // SAFETY: `'a` is invariant (via `Registration`' 338 pub struct Registration(NonNull<bindings::auxiliary_device>); global() struct 340 impl Registration { global() implementation 394 impl Drop for Registration { global() implementation 409 unsafe impl Send for Registration {} global() implementation 412 unsafe impl Sync for Registration {} global() implementation [all...] |
| H A D | i2c.rs | 557 pub struct Registration(NonNull<bindings::i2c_client>); struct 559 impl Registration { impl 583 impl Drop for Registration { implementation 592 unsafe impl Send for Registration {} implementation 596 unsafe impl Sync for Registration {} implementation
|
| H A D | platform.rs | 469 Registration, 476 Registration, 484 Registration, 492 Registration,
|
| H A D | cpufreq.rs | 848 /// CPU frequency driver Registration. 911 /// cpufreq::Registration::<SampleDriver>::new_foreign_owned(pdev.as_ref())?; 917 pub struct Registration<T: Driver>(KBox<UnsafeCell<bindings::cpufreq_driver>>, PhantomData<T>); 919 /// SAFETY: `Registration` doesn't offer any methods or access to fields when shared between threads 921 unsafe impl<T: Driver> Sync for Registration<T> {} 924 /// SAFETY: Registration with and unregistration from the cpufreq subsystem can happen from any 926 unsafe impl<T: Driver> Send for Registration<T> {} 928 impl<T: Driver> Registration<T> { 1055 // SAFETY: `drv` is guaranteed to be valid for the lifetime of `Registration`. in new_foreign_owned() 1061 /// Same as [`Registration 903 pub struct Registration<T: Driver>(KBox<UnsafeCell<bindings::cpufreq_driver>>, PhantomData<T>); global() struct 907 unsafe impl<T: Driver> Sync for Registration<T> {} global() implementation 912 unsafe impl<T: Driver> Send for Registration<T> {} global() implementation 914 impl<T: Driver> Registration<T> { global() implementation 1060 impl<T: Driver> Registration<T> { global() implementation 1392 impl<T: Driver> Drop for Registration<T> { global() implementation [all...] |
| /linux/samples/rust/ |
| H A D | rust_driver_auxiliary.rs | 65 /// Registration data with interior mutability. 82 _reg0: auxiliary::Registration<'bound, CovariantForLt!(Data<'_>)>, in connect() 84 _reg1: auxiliary::Registration<'bound, ForLt!(MutexData<'_>)>, in connect() 107 auxiliary::Registration::new_with_lt( 120 auxiliary::Registration::new_with_lt( 182 _pci_driver: driver::Registration<pci::Adapter<ParentDriver>>, 184 _aux_driver: driver::Registration<auxiliary::Adapter<AuxiliaryDriver>>, 190 _pci_driver <- driver::Registration::new(MODULE_NAME, module), 191 _aux_driver <- driver::Registration::new(MODULE_NAME, module),
|
| H A D | rust_driver_faux.rs | 20 _reg: faux::Registration, in init() 27 let reg = faux::Registration::new(c"rust-faux-sample-device", None)?; in init()
|
| H A D | rust_i2c_client.rs | 85 _reg: Devres<i2c::Registration>, 126 i2c::Registration::new(&adapter, &BOARD_INFO, pdev.as_ref()) in probe()
|
| H A D | Kconfig | 99 tristate "I2C Client Registration"
|
| /linux/net/8021q/ |
| H A D | Kconfig | 23 bool "GVRP (GARP VLAN Registration Protocol) support" 33 bool "MVRP (Multiple VLAN Registration Protocol) support"
|
| /linux/rust/kernel/irq/ |
| H A D | request.rs | 4 //! This module provides types like [`Registration`] and 52 /// - `irq` has not been registered yet; this is consumed by [`Registration::new()`]. 56 /// lifetime, ensuring the [`Registration`] cannot outlive it. 85 /// The following is an example of using `Registration`. It uses a in drop() 105 /// Registration, 131 /// ) -> Result<Pin<KBox<Registration<'_, Data>>>> { 132 /// // SAFETY: The returned Registration is not leaked. 134 /// Registration::new( 157 pub struct Registration<'a, T: Handler> { 169 impl<'a, T: Handler> Registration<' 184 pub struct Registration<T: Handler + 'static> { global() struct 186 innerRegistration global() argument 197 impl<T: Handler + 'static> Registration<T> { global() implementation 268 let registration = unsafe { &*(ptr as *const Registration<T>) }; handle_irq_callback() constant [all...] |
| /linux/rust/kernel/pci/ |
| H A D | irq.rs | 81 /// a handler with [`irq::Registration::new`](crate::irq::Registration::new).
|
| /linux/Documentation/tee/ |
| H A D | tee.rst | 18 - Registration of TEE drivers
|
| /linux/Documentation/power/regulator/ |
| H A D | regulator.rst | 9 Registration chapter
|
| /linux/Documentation/driver-api/ |
| H A D | vfio-mediated-device.rst | 76 Registration Interfaces 82 * Registration interface for a mediated bus driver 85 Registration Interface for a Mediated Bus Driver
|
| H A D | regulator.rst | 118 Registration should be triggered by explicit setup done by the platform,
|
| /linux/Documentation/driver-api/surface_aggregator/clients/ |
| H A D | san.rst | 31 loaded, regardless of being linked as client or not. Registration is done
|
| /linux/Documentation/i2c/muxes/ |
| H A D | i2c-mux-gpio.rst | 75 Device Registration
|
| /linux/Documentation/crypto/ |
| H A D | devel-algos.rst | 57 Registration specifics 108 Registration Specifics
|
| /linux/Documentation/driver-api/driver-model/ |
| H A D | bus.rst | 29 Registration chapter
|
| H A D | driver.rst | 77 Registration chapter 93 possible. Registration with the core initializes several fields in the
|
| /linux/Documentation/input/ |
| H A D | userio.rst | 62 forth. Registration can only be performed once a port type is set with
|
| /linux/Documentation/driver-api/media/ |
| H A D | v4l2-device.rst | 15 Registration will initialize the :c:type:`v4l2_device` struct. If the
|
| /linux/Documentation/power/ |
| H A D | opp.rst | 10 2. Initial OPP List Registration 92 2. Initial OPP List Registration
|