Home
last modified time | relevance | path

Searched full:safety (Results 1 – 25 of 335) sorted by relevance

12345678910>>...14

/Linux-v6.1/Documentation/rust/
Dcoding-guidelines.rst58 includes ``// SAFETY:``, ``// TODO:`` and other "tagged" comments, e.g.:
88 One special kind of comments are the ``// SAFETY:`` comments. These must appear
94 // SAFETY: `p` is valid by the safety requirements.
97 ``// SAFETY:`` comments are not to be confused with the ``# Safety`` sections
98 in code documentation. ``# Safety`` sections specify the contract that callers
99 (for functions) or implementors (for traits) need to abide by. ``// SAFETY:``
101 respects the preconditions stated in a ``# Safety`` section or the language
124 /// # Safety
140 // SAFETY: The safety contract must be upheld by the caller.
151 - Unsafe functions must document their safety preconditions under
[all …]
/Linux-v6.1/rust/alloc/
Dalloc.rs68 /// # Safety
103 /// # Safety
121 /// # Safety
140 /// # Safety
171 // SAFETY: `layout` is non-zero in size, in alloc_impl()
180 // SAFETY: Same as `Allocator::grow`
197 // SAFETY: `new_size` is non-zero as `old_size` is greater than or equal to `new_size` in grow_impl()
198 // as required by safety conditions. Other conditions must be upheld by the caller in grow_impl()
213 // SAFETY: because `new_layout.size()` must be greater than or equal to `old_size`, in grow_impl()
216 // `new_ptr`. Thus, the call to `copy_nonoverlapping` is safe. The safety contract in grow_impl()
[all …]
/Linux-v6.1/arch/arm/mm/
Dproc-sa110.S95 mov r0, r0 @ safety
96 mov r0, r0 @ safety
97 mov r0, r0 @ safety
99 mov r0, r0 @ safety
100 mov r0, r0 @ safety
101 mov r0, r0 @ safety
/Linux-v6.1/rust/kernel/
Dstr.rs27 /// # Safety
32 // INVARIANT: The safety requierments guarantee the type invariants. in from_ptrs()
58 // SAFETY: If `len_to_copy` is non-zero, then we know `pos` has not gone past `end` in write_str()
Dlib.rs55 // SAFETY: `THIS_MODULE` may be used from all threads within a module.
61 /// # Safety
73 // SAFETY: FFI call. in panic()
Dprint.rs23 // SAFETY: The C contract guarantees that `buf` is valid if it's less than `end`. in rust_fmt_argument()
84 /// # Safety
118 // SAFETY: This hidden macro should only be called by the documented
/Linux-v6.1/rust/alloc/vec/
Dinto_iter.rs186 // SAFETY: due to unchecked casts of unsigned amounts to signed offsets the wraparound in advance_by()
191 // SAFETY: the min() above ensures that step_size is in bounds in advance_by()
194 // SAFETY: the min() above ensures that step_size is in bounds in advance_by()
213 // SAFETY: the caller must guarantee that `i` is in bounds of the in __iterator_get_unchecked()
250 // SAFETY: same as for advance_by() in advance_back_by()
255 // SAFETY: same as for advance_by() in advance_back_by()
259 // SAFETY: same as for advance_by() in advance_back_by()
342 // In addition to the SAFETY invariants of the following three unsafe traits
Dmod.rs477 /// # Safety
622 /// # Safety
1204 /// # Safety
1234 /// // SAFETY: When `deflateGetDictionary` returns `Z_OK`, it holds that:
1260 /// // SAFETY:
1514 // SAFETY: Trailing unchecked items must be valid since we never touch them. in retain_mut()
1523 // SAFETY: After filling holes, all items are in contiguous memory. in retain_mut()
1540 // SAFETY: Unchecked element must be valid. in retain_mut()
1546 // SAFETY: We never touch this element again after dropped. in retain_mut()
1556 … // SAFETY: `deleted_cnt` > 0, so the hole slot must not overlap with current element. in retain_mut()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/regulator/
Drichtek,rtmv20-regulator.yaml79 description: Eye safety function pulse width limit in microsecond.
85 description: Eye safety function load current limit in microamp.
117 description: Eye safety function enable control.
/Linux-v6.1/Documentation/devicetree/bindings/power/supply/
Dactive-semi,act8945a-charger.yaml40 Specifies the charger's PRECONDITION safety timer setting value in minutes.
48 Specifies the charger's total safety timer setting value in hours;
Dqcom,pm8941-charger.yaml47 description: Maximum charge current in uA; May be clamped to safety limits; Defaults to 1A
64 May be clamped to safety limits.
117 be done externally to fully comply with the JEITA safety guidelines if this flag
/Linux-v6.1/lib/
Ddecompress_unxz.c15 * most of the compressed data. There must be enough safety margin to
18 * The safety margin for XZ with LZMA2 or BCJ+LZMA2 is calculated below.
48 * safety margin for LZMA2.
73 * Now we have enough information to calculate the safety margin. We need
DKconfig.kasan35 bool "KASAN: dynamic memory safety error detector"
43 Enables KASAN (Kernel Address Sanitizer) - a dynamic memory safety
Ddecompress_unzstd.c8 * most of the compressed data. There must be enough safety margin to
11 * The safety margin for ZSTD with a 128 KB block size is calculated below.
42 * Now we have enough information to calculate the safety margin. We need
/Linux-v6.1/arch/powerpc/boot/dts/
Dac14xx.dts45 0x5 0x0 0xe0400000 0x00010000 /* CS5: safety */
125 safety@5,0 {
126 compatible = "ifm,safety";
/Linux-v6.1/arch/x86/include/asm/
Dsuspend_32.h28 unsigned long safety; member
/Linux-v6.1/drivers/video/backlight/
Dktd253-backlight.c26 #define KTD253_T_LOW_NS (200 + 10) /* Additional 10ns as safety factor */
27 #define KTD253_T_HIGH_NS (200 + 10) /* Additional 10ns as safety factor */
/Linux-v6.1/drivers/power/supply/
Dab8500_chargalg.c219 * @safety_timer: charging safety timer
256 * ab8500_chargalg_safety_timer_expired() - Expiration of the safety timer
259 * This function gets called when the safety timer for the charger
267 dev_err(di->dev, "Safety timer expired\n"); in ab8500_chargalg_safety_timer_expired()
377 * ab8500_chargalg_start_safety_timer() - Start charging safety timer
380 * The safety timer is used to avoid overcharging of old or bad batteries.
410 * ab8500_chargalg_stop_safety_timer() - Stop charging safety timer
413 * The safety timer is stopped whenever the NORMAL state is exited
1263 /* Safety timer expiration */ in ab8500_chargalg_algorithm()
1791 /* Initilialize safety timer */ in ab8500_chargalg_probe()
/Linux-v6.1/drivers/thermal/intel/int340x_thermal/
DKconfig17 CPU/SOC, for thermal safety reasons.
/Linux-v6.1/scripts/dtc/libfdt/
Dlibfdt_internal.h80 * individually. For maximum safety, don't enable any assumptions!
82 * For minimal code size and no safety, use ASSUME_PERFECT at your own risk.
/Linux-v6.1/arch/sparc/prom/
Dp1275.c32 * This provides SMP safety on the p1275buf.
/Linux-v6.1/Documentation/power/regulator/
Ddesign.rst8 Safety section in Regulator API design notes
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/
Dcommon.h207 /* Safety Feature statistics exposed by ethtool */
214 /* Number of fields in Safety Stats */
414 /* Automotive Safety Package */
/Linux-v6.1/net/hsr/
DKconfig38 relying on this code in a safety critical system!
/Linux-v6.1/Documentation/devicetree/bindings/watchdog/
Dti,rti-wdt.yaml17 generated can be routed to either interrupt a safety controller or

12345678910>>...14