From f99c6e92aaa1582e6cd19d93d44d91d968f39aa7 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 29 Jul 2021 15:49:55 -0400 Subject: [PATCH] cleanup: spelling fixes in comments Change-Id: I22ae33365d77abeb5f7051882e9d0fa807e38f6f Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- configure.ac | 6 +++--- doc/cds-api.md | 2 +- doc/examples/rculfhash/jhash.h | 2 +- extras/abi/README | 2 +- include/urcu/static/rculfstack.h | 2 +- include/urcu/static/urcu-mb.h | 2 +- include/urcu/static/urcu-memb.h | 2 +- include/urcu/static/urcu-signal.h | 2 +- m4/ae_config_feature.m4 | 2 +- src/compat_arch.c | 2 +- src/urcu-bp.c | 4 ++-- src/urcu-qsbr.c | 6 +++--- src/urcu.c | 4 ++-- 13 files changed, 19 insertions(+), 19 deletions(-) diff --git a/configure.ac b/configure.ac index f026c6d..7f37891 100644 --- a/configure.ac +++ b/configure.ac @@ -192,9 +192,9 @@ AC_SEARCH_LIBS([clock_gettime], [rt], [ ]) -## ## -## Optionnal features selection ## -## ## +## ## +## Optional features selection ## +## ## # Allow to fallback to FIXME if the membarrier syscall is unavailable on the # running kernel, when disabled, abort if the syscall is unavailable. Applies diff --git a/doc/cds-api.md b/doc/cds-api.md index 49a3c7c..5bc615e 100644 --- a/doc/cds-api.md +++ b/doc/cds-api.md @@ -76,7 +76,7 @@ This queue relies on RCU for existence guarantees. ### `urcu/rculfhash.h` Lock-Free Resizable RCU Hash Table. RCU used to provide -existance guarantees. Provides scalable updates, and scalable +existence guarantees. Provides scalable updates, and scalable RCU read-side lookups and traversals. Unique and duplicate keys are supported. Provides "uniquify add" and "replace add" operations, along with associated read-side traversal uniqueness diff --git a/doc/examples/rculfhash/jhash.h b/doc/examples/rculfhash/jhash.h index fc3928e..f50a0da 100644 --- a/doc/examples/rculfhash/jhash.h +++ b/doc/examples/rculfhash/jhash.h @@ -116,7 +116,7 @@ uint32_t hashlittle(const void *key, size_t length, uint32_t initval) * rest of the string. Every machine with memory protection I've seen * does it on word boundaries, so is OK with this. But VALGRIND will * still catch it and complain. The masking trick does make the hash - * noticably faster for short strings (like English words). + * noticeably faster for short strings (like English words). */ #ifndef VALGRIND diff --git a/extras/abi/README b/extras/abi/README index a74ec1b..4492fc6 100644 --- a/extras/abi/README +++ b/extras/abi/README @@ -1,5 +1,5 @@ This directory contains the serialized ABI definitions for a typical build of -the liburcu librairies. This information is extracted using libabigail +the liburcu libraries. This information is extracted using libabigail (https://sourceware.org/libabigail/). The artefacts used to generate these were built with CFLAGS="-O0 -ggdb". diff --git a/include/urcu/static/rculfstack.h b/include/urcu/static/rculfstack.h index 71d14e0..54ff377 100644 --- a/include/urcu/static/rculfstack.h +++ b/include/urcu/static/rculfstack.h @@ -63,7 +63,7 @@ void _cds_lfs_init_rcu(struct cds_lfs_stack_rcu *s) * always performing an exclusive cacheline access, rather than doing * non-exclusive followed by exclusive cacheline access (which would be * required if we first read the old head value). This design decision - * might be revisited after more throrough benchmarking on various + * might be revisited after more thorough benchmarking on various * platforms. * * Returns 0 if the stack was empty prior to adding the node. diff --git a/include/urcu/static/urcu-mb.h b/include/urcu/static/urcu-mb.h index 0dd7d42..577fdcd 100644 --- a/include/urcu/static/urcu-mb.h +++ b/include/urcu/static/urcu-mb.h @@ -118,7 +118,7 @@ static inline void _urcu_mb_read_unlock_update_and_wakeup(unsigned long tmp) } /* - * Exit an RCU read-side crtical section. Both this function and its + * Exit an RCU read-side critical section. Both this function and its * helper are smaller than 10 lines of code, and are intended to be * usable by non-LGPL code, as called out in LGPL. */ diff --git a/include/urcu/static/urcu-memb.h b/include/urcu/static/urcu-memb.h index a64efee..d30365a 100644 --- a/include/urcu/static/urcu-memb.h +++ b/include/urcu/static/urcu-memb.h @@ -141,7 +141,7 @@ static inline void _urcu_memb_read_unlock_update_and_wakeup(unsigned long tmp) } /* - * Exit an RCU read-side crtical section. Both this function and its + * Exit an RCU read-side critical section. Both this function and its * helper are smaller than 10 lines of code, and are intended to be * usable by non-LGPL code, as called out in LGPL. */ diff --git a/include/urcu/static/urcu-signal.h b/include/urcu/static/urcu-signal.h index f0faf3a..4de6da0 100644 --- a/include/urcu/static/urcu-signal.h +++ b/include/urcu/static/urcu-signal.h @@ -119,7 +119,7 @@ static inline void _urcu_signal_read_unlock_update_and_wakeup(unsigned long tmp) } /* - * Exit an RCU read-side crtical section. Both this function and its + * Exit an RCU read-side critical section. Both this function and its * helper are smaller than 10 lines of code, and are intended to be * usable by non-LGPL code, as called out in LGPL. */ diff --git a/m4/ae_config_feature.m4 b/m4/ae_config_feature.m4 index 7582c00..315da57 100644 --- a/m4/ae_config_feature.m4 +++ b/m4/ae_config_feature.m4 @@ -211,7 +211,7 @@ m4_pushdef([FEATURE], patsubst([$1], -, _))dnl ]) -dnl Disabled by default, unless already overriden +dnl Disabled by default, unless already overridden m4_ifndef([ae_feature_default_arg],[AE_FEATURE_DEFAULT_DISABLE]) diff --git a/src/compat_arch.c b/src/compat_arch.c index 461c709..73f7d2d 100644 --- a/src/compat_arch.c +++ b/src/compat_arch.c @@ -41,7 +41,7 @@ /* * It does not really matter if the constructor is called before using * the library, as long as the caller checks if __rcu_cas_avail < 0 and calls - * compat_arch_init() explicitely if needed. + * compat_arch_init() explicitly if needed. */ int __attribute__((constructor)) __rcu_cas_init(void); diff --git a/src/urcu-bp.c b/src/urcu-bp.c index 0d6ff4b..83df139 100644 --- a/src/urcu-bp.c +++ b/src/urcu-bp.c @@ -296,7 +296,7 @@ void urcu_bp_synchronize_rcu(void) /* * Wait for readers to observe original parity or be quiescent. * wait_for_readers() can release and grab again rcu_registry_lock - * interally. + * internally. */ wait_for_readers(®istry, &cur_snap_readers, &qsreaders); @@ -327,7 +327,7 @@ void urcu_bp_synchronize_rcu(void) /* * Wait for readers to observe new parity or be quiescent. * wait_for_readers() can release and grab again rcu_registry_lock - * interally. + * internally. */ wait_for_readers(&cur_snap_readers, NULL, &qsreaders); diff --git a/src/urcu-qsbr.c b/src/urcu-qsbr.c index 40c0fbd..e934d3b 100644 --- a/src/urcu-qsbr.c +++ b/src/urcu-qsbr.c @@ -278,7 +278,7 @@ void urcu_qsbr_synchronize_rcu(void) /* * Wait for readers to observe original parity or be quiescent. * wait_for_readers() can release and grab again rcu_registry_lock - * interally. + * internally. */ wait_for_readers(®istry, &cur_snap_readers, &qsreaders); @@ -321,7 +321,7 @@ void urcu_qsbr_synchronize_rcu(void) /* * Wait for readers to observe new parity or be quiescent. * wait_for_readers() can release and grab again rcu_registry_lock - * interally. + * internally. */ wait_for_readers(&cur_snap_readers, NULL, &qsreaders); @@ -410,7 +410,7 @@ void urcu_qsbr_synchronize_rcu(void) /* * Wait for readers to observe new count of be quiescent. * wait_for_readers() can release and grab again rcu_registry_lock - * interally. + * internally. */ wait_for_readers(®istry, NULL, &qsreaders); diff --git a/src/urcu.c b/src/urcu.c index 2c9e5d1..902b8f8 100644 --- a/src/urcu.c +++ b/src/urcu.c @@ -441,7 +441,7 @@ void synchronize_rcu(void) /* * Wait for readers to observe original parity or be quiescent. * wait_for_readers() can release and grab again rcu_registry_lock - * interally. + * internally. */ wait_for_readers(®istry, &cur_snap_readers, &qsreaders); @@ -483,7 +483,7 @@ void synchronize_rcu(void) /* * Wait for readers to observe new parity or be quiescent. * wait_for_readers() can release and grab again rcu_registry_lock - * interally. + * internally. */ wait_for_readers(&cur_snap_readers, NULL, &qsreaders); -- 2.34.1