ACIL FM
Dark
Refresh
Current DIR:
/usr/src/kernels/5.14.0-427.31.1.el9_4.x86_64/include/asm-generic/bitops
/
usr
src
kernels
5.14.0-427.31.1.el9_4.x86_64
include
asm-generic
bitops
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
arch_hweight.h
555 B
chmod
View
DL
Edit
Rename
Delete
atomic.h
1.64 MB
chmod
View
DL
Edit
Rename
Delete
builtin-ffs.h
374 B
chmod
View
DL
Edit
Rename
Delete
builtin-fls.h
412 B
chmod
View
DL
Edit
Rename
Delete
builtin-__ffs.h
379 B
chmod
View
DL
Edit
Rename
Delete
builtin-__fls.h
436 B
chmod
View
DL
Edit
Rename
Delete
const_hweight.h
1.67 MB
chmod
View
DL
Edit
Rename
Delete
ext2-atomic-setbit.h
403 B
chmod
View
DL
Edit
Rename
Delete
ext2-atomic.h
600 B
chmod
View
DL
Edit
Rename
Delete
ffs.h
654 B
chmod
View
DL
Edit
Rename
Delete
ffz.h
325 B
chmod
View
DL
Edit
Rename
Delete
fls.h
683 B
chmod
View
DL
Edit
Rename
Delete
fls64.h
860 B
chmod
View
DL
Edit
Rename
Delete
hweight.h
254 B
chmod
View
DL
Edit
Rename
Delete
instrumented-atomic.h
2.99 MB
chmod
View
DL
Edit
Rename
Delete
instrumented-lock.h
2.62 MB
chmod
View
DL
Edit
Rename
Delete
instrumented-non-atomic.h
4.67 MB
chmod
View
DL
Edit
Rename
Delete
le.h
1.3 MB
chmod
View
DL
Edit
Rename
Delete
lock.h
2.58 MB
chmod
View
DL
Edit
Rename
Delete
non-atomic.h
3.86 MB
chmod
View
DL
Edit
Rename
Delete
sched.h
760 B
chmod
View
DL
Edit
Rename
Delete
__ffs.h
777 B
chmod
View
DL
Edit
Rename
Delete
__fls.h
920 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/src/kernels/5.14.0-427.31.1.el9_4.x86_64/include/asm-generic/bitops/non-atomic.h
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_BITOPS_NON_ATOMIC_H_ #define _ASM_GENERIC_BITOPS_NON_ATOMIC_H_ #include <asm/types.h> #include <asm/barrier.h> /** * arch___set_bit - Set a bit in memory * @nr: the bit to set * @addr: the address to start counting from * * Unlike set_bit(), this function is non-atomic and may be reordered. * If it's called on the same region of memory simultaneously, the effect * may be that only one operation succeeds. */ static __always_inline void arch___set_bit(int nr, volatile unsigned long *addr) { unsigned long mask = BIT_MASK(nr); unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); *p |= mask; } #define __set_bit arch___set_bit static __always_inline void arch___clear_bit(int nr, volatile unsigned long *addr) { unsigned long mask = BIT_MASK(nr); unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); *p &= ~mask; } #define __clear_bit arch___clear_bit /** * arch___change_bit - Toggle a bit in memory * @nr: the bit to change * @addr: the address to start counting from * * Unlike change_bit(), this function is non-atomic and may be reordered. * If it's called on the same region of memory simultaneously, the effect * may be that only one operation succeeds. */ static __always_inline void arch___change_bit(int nr, volatile unsigned long *addr) { unsigned long mask = BIT_MASK(nr); unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); *p ^= mask; } #define __change_bit arch___change_bit /** * arch___test_and_set_bit - Set a bit and return its old value * @nr: Bit to set * @addr: Address to count from * * This operation is non-atomic and can be reordered. * If two examples of this operation race, one can appear to succeed * but actually fail. You must protect multiple accesses with a lock. */ static __always_inline int arch___test_and_set_bit(int nr, volatile unsigned long *addr) { unsigned long mask = BIT_MASK(nr); unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); unsigned long old = *p; *p = old | mask; return (old & mask) != 0; } #define __test_and_set_bit arch___test_and_set_bit /** * arch___test_and_clear_bit - Clear a bit and return its old value * @nr: Bit to clear * @addr: Address to count from * * This operation is non-atomic and can be reordered. * If two examples of this operation race, one can appear to succeed * but actually fail. You must protect multiple accesses with a lock. */ static __always_inline int arch___test_and_clear_bit(int nr, volatile unsigned long *addr) { unsigned long mask = BIT_MASK(nr); unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); unsigned long old = *p; *p = old & ~mask; return (old & mask) != 0; } #define __test_and_clear_bit arch___test_and_clear_bit /* WARNING: non atomic and it can be reordered! */ static __always_inline int arch___test_and_change_bit(int nr, volatile unsigned long *addr) { unsigned long mask = BIT_MASK(nr); unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); unsigned long old = *p; *p = old ^ mask; return (old & mask) != 0; } #define __test_and_change_bit arch___test_and_change_bit /** * arch_test_bit - Determine whether a bit is set * @nr: bit number to test * @addr: Address to start counting from */ static __always_inline int arch_test_bit(int nr, const volatile unsigned long *addr) { return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); } #define test_bit arch_test_bit /** * arch_test_bit_acquire - Determine, with acquire semantics, whether a bit is set * @nr: bit number to test * @addr: Address to start counting from */ static __always_inline bool arch_test_bit_acquire(unsigned long nr, const volatile unsigned long *addr) { unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); return 1UL & (smp_load_acquire(p) >> (nr & (BITS_PER_LONG-1))); } #define test_bit_acquire arch_test_bit_acquire #endif /* _ASM_GENERIC_BITOPS_NON_ATOMIC_H_ */
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply