Home
last modified time | relevance | path

Searched refs:local_t (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v5.15/arch/x86/include/asm/
Dlocal.h12 } local_t; typedef
19 static inline void local_inc(local_t *l) in local_inc()
25 static inline void local_dec(local_t *l) in local_dec()
31 static inline void local_add(long i, local_t *l) in local_add()
38 static inline void local_sub(long i, local_t *l) in local_sub()
54 static inline bool local_sub_and_test(long i, local_t *l) in local_sub_and_test()
67 static inline bool local_dec_and_test(local_t *l) in local_dec_and_test()
80 static inline bool local_inc_and_test(local_t *l) in local_inc_and_test()
94 static inline bool local_add_negative(long i, local_t *l) in local_add_negative()
106 static inline long local_add_return(long i, local_t *l) in local_add_return()
[all …]
/Linux-v5.15/Documentation/translations/zh_CN/core-api/
Dlocal_ops.rst24 注意,基于 ``local_t`` 的操作不建议用于一般内核操作。请使用 ``this_cpu``
25 操作来代替使用,除非真的有特殊目的。大多数内核中使用的 ``local_t`` 已
27 定位和类似 ``local_t`` 的语义,产生了更紧凑和更快的执行代码。
41 有一个CPU写到 ``local_t`` 的数据。这是通过使用每CPU的数据来实现的,并确
42 保我们在一个抢占式安全上下文中修改它。然而,从任何一个CPU读取 ``local_t``
54 通过在一个结构体中嵌入一个 ``atomic_long_t`` , ``local_t`` 类型被定义为
58 typedef struct { atomic_long_t a; } local_t;
69 它的local_t变量。
93 static DEFINE_PER_CPU(local_t, counters) = LOCAL_INIT(0);
127 用 ``local_t`` 变量作为写在缓冲区中的字节的计数器,就会出现这种情况:在缓
[all …]
/Linux-v5.15/arch/powerpc/include/asm/
Dlocal.h16 } local_t; typedef
20 static __inline__ long local_read(const local_t *l) in local_read()
25 static __inline__ void local_set(local_t *l, long i) in local_set()
31 static __inline__ void local_##op(long i, local_t *l) \
41 static __inline__ long local_##op##_return(long a, local_t *l) \
79 static __inline__ long local_cmpxchg(local_t *l, long o, long n) in local_cmpxchg()
93 static __inline__ long local_xchg(local_t *l, long n) in local_xchg()
115 static __inline__ int local_add_unless(local_t *l, long a, long u) in local_add_unless()
/Linux-v5.15/Documentation/core-api/
Dlocal_ops.rst18 Note that ``local_t`` based operations are not recommended for general
20 really a special purpose. Most uses of ``local_t`` in the kernel have been
22 relocation with the ``local_t`` like semantics in a single instruction and
41 CPU writes to the ``local_t`` data. This is done by using per cpu data and
43 however permitted to read ``local_t`` data from any CPU: it will then appear to
56 The ``local_t`` type is defined as an opaque ``signed long`` by embedding an
60 typedef struct { atomic_long_t a; } local_t;
69 to update its ``local_t`` variables.
95 static DEFINE_PER_CPU(local_t, counters) = LOCAL_INIT(0);
131 the ``local_t`` variable as a counter of bytes written in a buffer: there should
[all …]
/Linux-v5.15/kernel/events/
Dinternal.h26 local_t head; /* write position */
28 local_t events; /* event limit */
29 local_t wakeup; /* wakeup stamp */
30 local_t lost; /* nr records lost */
/Linux-v5.15/arch/alpha/include/asm/
Dlocal.h11 } local_t; typedef
21 static __inline__ long local_add_return(long i, local_t * l) in local_add_return()
38 static __inline__ long local_sub_return(long i, local_t * l) in local_sub_return()
/Linux-v5.15/arch/mips/include/asm/
Dlocal.h15 } local_t; typedef
30 static __inline__ long local_add_return(long i, local_t * l) in local_add_return()
79 static __inline__ long local_sub_return(long i, local_t * l) in local_sub_return()
/Linux-v5.15/include/linux/
Dcookie.h10 local_t nesting;
Dpart_stat.h13 local_t in_flight[2];
/Linux-v5.15/arch/x86/events/intel/
Dpt.h81 local_t data_size;
Dbts.c57 local_t data_size;
58 local_t head;
/Linux-v5.15/include/asm-generic/
Dlocal.h25 } local_t; typedef
Dlocal64.h25 local_t a;
/Linux-v5.15/kernel/trace/
Dring_buffer.c308 local_t commit; /* write committed index */
322 local_t write; /* index for next write */
324 local_t entries; /* entries on this page */
468 local_t cnt;
469 local_t top;
470 local_t bottom;
504 local_t entries_bytes;
505 local_t entries;
506 local_t overrun;
507 local_t commit_overrun;
[all …]
Dring_buffer_benchmark.c17 local_t commit;
Dtrace_osnoise.c102 local_t int_counter;
/Linux-v5.15/mm/
Dmmap_lock.c46 local_t buf_idx;
/Linux-v5.15/block/
Dmq-deadline.c56 local_t inserted;
57 local_t merged;
58 local_t dispatched;
59 local_t completed;
Dblk-iocost.c388 local_t nr_met;
389 local_t nr_missed;
/Linux-v5.15/drivers/hwtracing/coresight/
Dcoresight-etm.h241 local_t mode;
Dcoresight-priv.h101 local_t data_size;
Dcoresight-etb10.c89 local_t reading;
Dcoresight-stm.c138 local_t mode;
Dcoresight-etm4x.h934 local_t mode;
/Linux-v5.15/arch/mips/math-emu/
Dme-debugfs.c21 local_t *pv; in fpuemu_stat_get()

12