summaryrefslogtreecommitdiff
path: root/mgmtd/mgmt_fe_adapter.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-03-01 16:18:12 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-03-24 08:32:17 -0400
commite6685141aae8fc869d49cde1d459f73b87bbec89 (patch)
tree465539dece789430eaaf76bce18c754c5e18f452 /mgmtd/mgmt_fe_adapter.c
parentcb37cb336a2cca77bfbaf6b0cfab12e847e45623 (diff)
*: Rename `struct thread` to `struct event`
Effectively a massive search and replace of `struct thread` to `struct event`. Using the term `thread` gives people the thought that this event system is a pthread when it is not Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'mgmtd/mgmt_fe_adapter.c')
-rw-r--r--mgmtd/mgmt_fe_adapter.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mgmtd/mgmt_fe_adapter.c b/mgmtd/mgmt_fe_adapter.c
index 6b4f09d9b2..eaa50367cb 100644
--- a/mgmtd/mgmt_fe_adapter.c
+++ b/mgmtd/mgmt_fe_adapter.c
@@ -51,8 +51,8 @@ struct mgmt_fe_session_ctx {
uint8_t ds_write_locked[MGMTD_DS_MAX_ID];
uint8_t ds_read_locked[MGMTD_DS_MAX_ID];
uint8_t ds_locked_implict[MGMTD_DS_MAX_ID];
- struct thread *proc_cfg_txn_clnp;
- struct thread *proc_show_txn_clnp;
+ struct event *proc_cfg_txn_clnp;
+ struct event *proc_show_txn_clnp;
struct mgmt_fe_sessions_item list_linkage;
};
@@ -629,7 +629,7 @@ static int mgmt_fe_send_getdata_reply(struct mgmt_fe_session_ctx *session,
return mgmt_fe_adapter_send_msg(session->adapter, &fe_msg);
}
-static void mgmt_fe_session_cfg_txn_clnup(struct thread *thread)
+static void mgmt_fe_session_cfg_txn_clnup(struct event *thread)
{
struct mgmt_fe_session_ctx *session;
@@ -638,7 +638,7 @@ static void mgmt_fe_session_cfg_txn_clnup(struct thread *thread)
mgmt_fe_session_cfg_txn_cleanup(session);
}
-static void mgmt_fe_session_show_txn_clnup(struct thread *thread)
+static void mgmt_fe_session_show_txn_clnup(struct event *thread)
{
struct mgmt_fe_session_ctx *session;
@@ -1435,7 +1435,7 @@ static void mgmt_fe_adapter_process_msg(void *user_ctx, uint8_t *data,
mgmtd__fe_message__free_unpacked(fe_msg, NULL);
}
-static void mgmt_fe_adapter_proc_msgbufs(struct thread *thread)
+static void mgmt_fe_adapter_proc_msgbufs(struct event *thread)
{
struct mgmt_fe_client_adapter *adapter = THREAD_ARG(thread);
@@ -1444,7 +1444,7 @@ static void mgmt_fe_adapter_proc_msgbufs(struct thread *thread)
mgmt_fe_adapter_register_event(adapter, MGMTD_FE_PROC_MSG);
}
-static void mgmt_fe_adapter_read(struct thread *thread)
+static void mgmt_fe_adapter_read(struct event *thread)
{
struct mgmt_fe_client_adapter *adapter = THREAD_ARG(thread);
enum mgmt_msg_rsched rv;
@@ -1459,7 +1459,7 @@ static void mgmt_fe_adapter_read(struct thread *thread)
mgmt_fe_adapter_register_event(adapter, MGMTD_FE_CONN_READ);
}
-static void mgmt_fe_adapter_write(struct thread *thread)
+static void mgmt_fe_adapter_write(struct event *thread)
{
struct mgmt_fe_client_adapter *adapter = THREAD_ARG(thread);
enum mgmt_msg_wsched rv;
@@ -1477,7 +1477,7 @@ static void mgmt_fe_adapter_write(struct thread *thread)
assert(rv == MSW_SCHED_NONE);
}
-static void mgmt_fe_adapter_resume_writes(struct thread *thread)
+static void mgmt_fe_adapter_resume_writes(struct event *thread)
{
struct mgmt_fe_client_adapter *adapter;