aboutsummaryrefslogtreecommitdiffstats
path: root/src/nSocket/nstack/event
diff options
context:
space:
mode:
Diffstat (limited to 'src/nSocket/nstack/event')
-rw-r--r--src/nSocket/nstack/event/epoll/nstack_eventpoll.c14
-rw-r--r--src/nSocket/nstack/event/select/nstack_select.c18
2 files changed, 16 insertions, 16 deletions
diff --git a/src/nSocket/nstack/event/epoll/nstack_eventpoll.c b/src/nSocket/nstack/event/epoll/nstack_eventpoll.c
index 989cdd7..9a753e9 100644
--- a/src/nSocket/nstack/event/epoll/nstack_eventpoll.c
+++ b/src/nSocket/nstack/event/epoll/nstack_eventpoll.c
@@ -124,7 +124,7 @@ nsep_epctl_triggle (struct epitem *epi, nsep_epollInfo_t * info,
/* Now need to triggle userspace network stack events after add operation */
if (info->rmidx >= 0)
{
- /* fix overflow type codedex issue */
+ /* fix overflow type codex issue */
if ((info->rmidx >= NSEP_SMOD_MAX)
|| (info->rmidx >= NSTACK_MAX_MODULE_NUM))
{
@@ -516,7 +516,7 @@ nsep_remove_epfd (nsep_epollInfo_t * pinfo)
struct free_list *fcurr = &flist;
#else
struct list_node **node_arry = NULL;
- int lenth = NSTACK_MAX_EPOLL_INFO_NUM * sizeof (struct list_node *);
+ int length = NSTACK_MAX_EPOLL_INFO_NUM * sizeof (struct list_node *);
#endif
struct epitem *epi = NULL;
struct epitem *tepi = NULL;
@@ -532,7 +532,7 @@ nsep_remove_epfd (nsep_epollInfo_t * pinfo)
#ifdef FREE_LIST_SIZE
flist.next = 0;
#else
- node_arry = (struct list_node **) malloc (lenth);
+ node_arry = (struct list_node **) malloc (length);
if (!node_arry)
{
NSSOC_LOGERR ("remove fd from ep malloc mem fail]fd=%d,ep=%p",
@@ -540,7 +540,7 @@ nsep_remove_epfd (nsep_epollInfo_t * pinfo)
return;
}
- int retVal = MEMSET_S (node_arry, lenth, 0, lenth);
+ int retVal = MEMSET_S (node_arry, length, 0, length);
if (EOK != retVal)
{
NSSOC_LOGERR ("MEMSET_S failed]retVal=%d", retVal);
@@ -1056,7 +1056,7 @@ nsep_attach_infoMem ()
hdl = nsep_ring_lookup (MP_NSTACK_EPINFO_RING_NAME);
if (NULL == hdl)
{
- NSSOC_LOGERR ("Fail to loock up epoll info ring]name=%s",
+ NSSOC_LOGERR ("Fail to lock up epoll info ring]name=%s",
MP_NSTACK_EPINFO_RING_NAME);
return -1;
}
@@ -1079,7 +1079,7 @@ nsep_attach_epItemMem ()
hdl = nsep_ring_lookup (MP_NSTACK_EPITEM_RING_NAME);
if (NULL == hdl)
{
- NSSOC_LOGERR ("Fail to loock up epoll info ring]name=%s",
+ NSSOC_LOGERR ("Fail to lock up epoll info ring]name=%s",
MP_NSTACK_EPITEM_RING_NAME);
return -1;
}
@@ -1102,7 +1102,7 @@ nsep_attach_eventpollMem ()
hdl = nsep_ring_lookup (MP_NSTACK_EVENTPOOL_RING_NAME);
if (NULL == hdl)
{
- NSSOC_LOGERR ("Fail to loock up epoll info ring]name=%s",
+ NSSOC_LOGERR ("Fail to lock up epoll info ring]name=%s",
MP_NSTACK_EVENTPOOL_RING_NAME);
return -1;
}
diff --git a/src/nSocket/nstack/event/select/nstack_select.c b/src/nSocket/nstack/event/select/nstack_select.c
index bb43dbe..ba64cff 100644
--- a/src/nSocket/nstack/event/select/nstack_select.c
+++ b/src/nSocket/nstack/event/select/nstack_select.c
@@ -107,7 +107,7 @@ select_cb_split_by_mod (i32 nfds,
if (select_get_modindex (i) != inx)
continue;
}
- NSSOC_LOGDBG ("fd is valiable i= %d fd = %d index = %d\n", i, fd,
+ NSSOC_LOGDBG ("fd is available i= %d fd = %d index = %d\n", i, fd,
inx);
if ((readfd) && (FD_ISSET (i, readfd)))
{
@@ -145,7 +145,7 @@ select_cb_split_by_mod (i32 nfds,
/*****************************************************************************
* Prototype : select_add_cb
-* Description : add cb to gloab list
+* Description : add cb to global list
* Input : struct select_entry *entry
* Output : None
* Return Value : i32
@@ -185,7 +185,7 @@ select_add_cb (struct select_entry * entry)
/*****************************************************************************
* Prototype : select_rm_cb
-* Description : rm the cb from gloab list
+* Description : rm the cb from global list
* Input : struct select_entry *entry
* Output : None
* Return Value : i32
@@ -230,10 +230,10 @@ select_rm_cb (struct select_entry * entry)
return TRUE;
}
-/*get fd set from entrys*/
+/*get fd set from entry*/
/*****************************************************************************
* Prototype : select_thread_get_fdset
-* Description : get module listening fd form gloab list
+* Description : get module listening fd form global list
* Input : nstack_fd_set *readfd
* nstack_fd_set *writefd
* nstack_fd_set *exceptfd
@@ -292,7 +292,7 @@ select_thread_get_fdset (nstack_fd_set * readfd,
/*****************************************************************************
* Prototype : select_thread_set_fdset
-* Description : set ready event to gloab list
+* Description : set ready event to global list
* Input : i32 nfds
* nstack_fd_set *readfd
* nstack_fd_set *writefd
@@ -344,7 +344,7 @@ select_thread_set_fdset (i32 nfds,
/*****************************************************************************
* Prototype : select_event_post
-* Description : when event ready post sem to awaik nstack_select
+* Description : when event ready post sem to awake nstack_select
* Input : struct select_module_info *module
* Output : None
* Return Value : void
@@ -589,7 +589,7 @@ lint_unlock ()
/*****************************************************************************
* Prototype : nstack_select_thread
-* Description : if gloab list not null scaning all modules ,need to think
+* Description : if global list not null scaning all modules ,need to think
about block mod
* Input : void *arg
* Output : None
@@ -690,7 +690,7 @@ nstack_select_thread (void *arg)
/*****************************************************************************
* Prototype : nssct_create
-* Description : create a select record for eveny fd
+* Description : create a select record for event fd
* Input : i32 cfd
* i32 mfd
* i32 inx