Home
last modified time | relevance | path

Searched refs:listSize (Results 1 – 5 of 5) sorted by relevance

/kernel/liteos_a/syscall/
Dprocess_syscall.c729 static int SetGroups(int listSize, const int *safeList, int size) in SetGroups() argument
734 User *newUser = LOS_MemAlloc(m_aucSysMem1, sizeof(User) + listSize * sizeof(int)); in SetGroups()
745 if (listSize == size) { in SetGroups()
746 newUser->groups[listSize] = oldUser->gid; in SetGroups()
749 newUser->groupNumber = listSize + 1; in SetGroups()
763 unsigned int listSize; in GetGroups() local
769 listSize = groupCount * sizeof(int); in GetGroups()
778 safeList = LOS_MemAlloc(m_aucSysMem1, listSize); in GetGroups()
784 (void)memcpy_s(safeList, listSize, &OsCurrProcessGet()->user->groups[0], listSize); in GetGroups()
787 ret = LOS_ArchCopyToUser(list, safeList, listSize); in GetGroups()
[all …]
/kernel/liteos_a/fs/vfs/operation/
Dvfs_other.c328 int listSize = MAX_DIR_ENT; in scandir_get_file_list() local
341 list = (struct dirent **)malloc(listSize * sizeof(struct dirent *)); in scandir_get_file_list()
352 if (n == listSize) { in scandir_get_file_list()
353 listSize += MAX_DIR_ENT; in scandir_get_file_list()
354 newList = (struct dirent **)malloc(listSize * sizeof(struct dirent *)); in scandir_get_file_list()
359 … err = memcpy_s(newList, listSize * sizeof(struct dirent *), list, n * sizeof(struct dirent *)); in scandir_get_file_list()
/kernel/liteos_a/testsuites/unittest/security/reugid/smoke/
Dreugid_test_001.cpp38 static int Child1(int *list, int listSize) in Child1() argument
74 ICUNIT_ASSERT_EQUAL(size, listSize, size); in Child1()
77 ICUNIT_ASSERT_EQUAL(size, listSize, size); in Child1()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
Deeprom.c52 bool ath9k_hw_get_lower_upper_index(u8 target, u8 *pList, u16 listSize, in ath9k_hw_get_lower_upper_index() argument
61 if (target >= pList[listSize - 1]) { in ath9k_hw_get_lower_upper_index()
62 *indexL = *indexR = (u16) (listSize - 1); in ath9k_hw_get_lower_upper_index()
66 for (i = 0; i < listSize - 1; i++) { in ath9k_hw_get_lower_upper_index()
Deeprom.h677 bool ath9k_hw_get_lower_upper_index(u8 target, u8 *pList, u16 listSize,