Skip to content

Commit d2bb638

Browse files
fix misspells in the repo
1 parent 01b9024 commit d2bb638

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

include/umf/memory_pool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ umf_result_t umfFree(void *ptr);
147147
///
148148
/// * The implementation of this function *should* be lock-free.
149149
/// @param hPool specified memory pool handle for which the last allocation error is returned
150-
/// @return Error code desciribng the failure of the last failed allocation operation.
150+
/// @return Error code describing the failure of the last failed allocation operation.
151151
/// The value is undefined if the previous allocation was successful.
152152
///
153153
umf_result_t umfPoolGetLastAllocationError(umf_memory_pool_handle_t hPool);

include/umf/memory_pool_ops.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ typedef struct umf_memory_pool_ops_t {
116116
///
117117
/// * The implementation of this function *should* be lock-free.
118118
/// @param pool pointer to the memory pool for which the last allocation error is returned
119-
/// @return Error code desciribng the failure of the last failed allocation operation.
119+
/// @return Error code describing the failure of the last failed allocation operation.
120120
/// The value is undefined if the previous allocation was successful.
121121
///
122122
umf_result_t (*get_last_allocation_error)(void *pool);

include/umf/mempolicy.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ typedef const struct umf_mempolicy_t *umf_const_mempolicy_handle_t;
2222
typedef enum umf_mempolicy_membind_t {
2323
/// Interleave memory from all memory in memspace
2424
UMF_MEMPOLICY_INTERLEAVE,
25-
/// Bind memory to namespace
25+
/// Bind memory to memspace
2626
UMF_MEMPOLICY_BIND,
27-
/// Prefer memory from namespace but fallback to other memory if not available
27+
/// Prefer memory from memspace but fallback to other memory if not available
2828
UMF_MEMPOLICY_PREFERRED,
2929
/// Allocation will be split evenly across nodes specified in nodemask.
3030
/// umf_mempolicy_split_partition_t can be used to specify different distribution.

scripts/docs_config/examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ the :any:`umfPoolCreate` function::
8585
umfPoolCreate(pool_ops, provider, pool_params, flags, &pool);
8686

8787
The ``pool`` has been created, we can allocate some memory now
88-
with ie. :any:`umfPoolCalloc`::
88+
with i.e. :any:`umfPoolCalloc`::
8989

9090
size_t num = 1;
9191
alloc_size = 128;
@@ -169,7 +169,7 @@ to another process it can be opened by the :any:`umfOpenIPCHandle` function.
169169
void *mapped_buf = NULL;
170170
umf_result = umfOpenIPCHandle(consumer_pool, ipc_handle, &mapped_buf);
171171
172-
The :any:`umfOpenIPCHandle` function requires the memory pool handle and the IPC handle as input parameters. It mapps
172+
The :any:`umfOpenIPCHandle` function requires the memory pool handle and the IPC handle as input parameters. It maps
173173
the handle to the current process address space and returns the pointer to the same memory region that was allocated
174174
in the producer process.
175175

scripts/docs_config/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Logging
139139
============
140140

141141
Logging in UMF is handled by logger. There are several levels of logging: *debug*, *info*, *warning*, and *error*.
142-
The level of logging determines what messages will be printed, ie. the level set to *warning* means all messages at levels *warning* and *error* will be printed.
142+
The level of logging determines what messages will be printed, i.e. the level set to *warning* means all messages at levels *warning* and *error* will be printed.
143143

144144
By default, there is a guarantee that *error* messages are flushed immediately. One can change this behavior to flush on lower-level messages.
145145

src/ipc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ umf_result_t umfPutIPCHandle(umf_ipc_handle_t umfIPCHandle) {
104104
// to upstream memory provider when umfMemoryProviderFree is called.
105105
// To support incapsulation we should not take into account
106106
// implementation details of tracking memory provider and find the
107-
// approrpiate pool, get memory provider of that pool and call
107+
// appropriate pool, get memory provider of that pool and call
108108
// umfMemoryProviderPutIPCHandle(hProvider,
109109
// umfIPCHandle->providerIpcData);
110110
umf_ba_global_free(umfIPCHandle);

src/libumf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*
3-
* Copyright (C) 2023 Intel Corporation
3+
* Copyright (C) 2023-2024 Intel Corporation
44
*
55
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
66
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
@@ -14,7 +14,7 @@
1414
extern "C" {
1515
#endif
1616

17-
// initializes runtime state needed by the library (needed mostly for static libaries on windows)
17+
// initializes runtime state needed by the library (needed mostly for static libraries on Windows)
1818
void libumfInit(void);
1919

2020
#ifdef __cplusplus

src/provider/provider_os_memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ static void os_finalize(void *provider) {
580580
static umf_result_t os_get_min_page_size(void *provider, void *ptr,
581581
size_t *page_size);
582582

583-
// TODO: this function should be reenabled when CTL is implemented
583+
// TODO: this function should be re-enabled when CTL is implemented
584584
#if 0
585585
static void print_numa_nodes(os_memory_provider_t *os_provider, void *addr,
586586
size_t size) {

0 commit comments

Comments
 (0)