Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
a104497e
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
1 年多 前同步成功
通知
460
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
a104497e
编写于
2月 28, 2023
作者:
O
openharmony_ci
提交者:
Gitee
2月 28, 2023
浏览文件
操作
浏览文件
下载
差异文件
!1127 feature: 内核libc升级
Merge pull request !1127 from Zhaotianyu/20230224libc_update
上级
c2b5a589
b5ae9e25
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
21 addition
and
13 deletion
+21
-13
kernel/base/container/los_container.c
kernel/base/container/los_container.c
+2
-1
kernel/base/container/los_mnt_container.c
kernel/base/container/los_mnt_container.c
+1
-1
kernel/base/container/los_net_container.c
kernel/base/container/los_net_container.c
+2
-1
kernel/base/container/los_user_container.c
kernel/base/container/los_user_container.c
+1
-1
kernel/base/container/los_uts_container.c
kernel/base/container/los_uts_container.c
+1
-2
kernel/base/core/los_info.c
kernel/base/core/los_info.c
+8
-1
kernel/extended/plimit/los_devicelimit.c
kernel/extended/plimit/los_devicelimit.c
+1
-1
kernel/extended/plimit/los_ipclimit.c
kernel/extended/plimit/los_ipclimit.c
+1
-1
kernel/extended/plimit/los_memlimit.c
kernel/extended/plimit/los_memlimit.c
+1
-1
kernel/extended/plimit/los_plimits.c
kernel/extended/plimit/los_plimits.c
+1
-1
kernel/extended/plimit/los_processlimit.c
kernel/extended/plimit/los_processlimit.c
+1
-1
kernel/extended/plimit/los_schedlimit.c
kernel/extended/plimit/los_schedlimit.c
+1
-1
未找到文件。
kernel/base/container/los_container.c
浏览文件 @
a104497e
...
...
@@ -27,10 +27,11 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef LOSCFG_KERNEL_CONTAINER
#include "los_container_pri.h"
#include "los_process_pri.h"
#include "internal.h"
#ifdef LOSCFG_KERNEL_CONTAINER
STATIC
Container
g_rootContainer
;
STATIC
ContainerLimit
g_containerLimit
;
...
...
kernel/base/container/los_mnt_container.c
浏览文件 @
a104497e
...
...
@@ -28,6 +28,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef LOSCFG_MNT_CONTAINER
#include <unistd.h>
#include "los_mnt_container_pri.h"
#include "los_container_pri.h"
...
...
@@ -36,7 +37,6 @@
#include "vnode.h"
#include "internal.h"
#ifdef LOSCFG_MNT_CONTAINER
STATIC
UINT32
g_currentMntContainerNum
;
LIST_HEAD
*
GetContainerMntList
(
VOID
)
...
...
kernel/base/container/los_net_container.c
浏览文件 @
a104497e
...
...
@@ -27,13 +27,14 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef LOSCFG_NET_CONTAINER
#include <sched.h>
#include "los_net_container_pri.h"
#include "los_config.h"
#include "los_memory.h"
#include "los_process_pri.h"
#ifdef LOSCFG_NET_CONTAINER
STATIC
UINT32
g_currentNetContainerNum
=
0
;
STATIC
NetContainer
*
g_rootNetContainer
=
NULL
;
...
...
kernel/base/container/los_user_container.c
浏览文件 @
a104497e
...
...
@@ -28,6 +28,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef LOSCFG_USER_CONTAINER
#include "los_user_container_pri.h"
#include "errno.h"
#include "ctype.h"
...
...
@@ -47,7 +48,6 @@
#define OCT 8
#define DEC 10
#ifdef LOSCFG_USER_CONTAINER
UINT32
g_currentUserContainerNum
=
0
;
UINT32
OsCreateUserContainer
(
Credentials
*
newCredentials
,
UserContainer
*
parentUserContainer
)
...
...
kernel/base/container/los_uts_container.c
浏览文件 @
a104497e
...
...
@@ -28,12 +28,11 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef LOSCFG_UTS_CONTAINER
#include "internal.h"
#include "los_uts_container_pri.h"
#include "los_process_pri.h"
#ifdef LOSCFG_UTS_CONTAINER
STATIC
UINT32
g_currentUtsContainerNum
;
STATIC
UINT32
InitUtsContainer
(
struct
utsname
*
name
)
...
...
kernel/base/core/los_info.c
浏览文件 @
a104497e
...
...
@@ -109,6 +109,7 @@ STATIC VOID GetProcessInfo(ProcessInfo *pcbInfo, const LosProcessCB *processCB)
(
VOID
)
memcpy_s
(
pcbInfo
->
name
,
OS_PCB_NAME_LEN
,
processCB
->
processName
,
OS_PCB_NAME_LEN
);
}
#ifdef LOSCFG_KERNEL_VM
STATIC
VOID
GetProcessMemInfo
(
ProcessInfo
*
pcbInfo
,
const
LosProcessCB
*
processCB
,
LosVmSpace
*
vmSpace
)
{
/* Process memory usage statistics, idle task defaults to 0 */
...
...
@@ -130,6 +131,7 @@ STATIC VOID GetProcessMemInfo(ProcessInfo *pcbInfo, const LosProcessCB *processC
}
}
}
#endif
STATIC
VOID
GetThreadInfo
(
ProcessThreadInfo
*
threadInfo
,
LosProcessCB
*
processCB
)
{
...
...
@@ -182,7 +184,9 @@ UINT32 OsGetProcessThreadInfo(UINT32 pid, ProcessThreadInfo *threadInfo)
return
LOS_NOK
;
}
#ifdef LOSCFG_KERNEL_VM
GetProcessMemInfo
(
&
threadInfo
->
processInfo
,
processCB
,
processCB
->
vmSpace
);
#endif
SCHEDULER_LOCK
(
intSave
);
GetProcessInfo
(
&
threadInfo
->
processInfo
,
processCB
);
...
...
@@ -210,11 +214,14 @@ STATIC VOID ProcessMemUsageGet(ProcessInfo *pcbArray)
pcbInfo
->
status
=
OS_PROCESS_FLAG_UNUSED
;
continue
;
}
#ifdef LOSCFG_KERNEL_VM
LosVmSpace
*
vmSpace
=
processCB
->
vmSpace
;
#endif
SCHEDULER_UNLOCK
(
intSave
);
#ifdef LOSCFG_KERNEL_VM
GetProcessMemInfo
(
pcbInfo
,
processCB
,
vmSpace
);
#endif
}
}
...
...
kernel/extended/plimit/los_devicelimit.c
浏览文件 @
a104497e
...
...
@@ -28,12 +28,12 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef LOSCFG_KERNEL_DEV_PLIMIT
#include "los_seq_buf.h"
#include "los_bitmap.h"
#include "los_process_pri.h"
#include "los_devicelimit.h"
#ifdef LOSCFG_KERNEL_DEV_PLIMIT
#define TYPE_CHAR_LEN (1)
#define DEVICE_NAME_PREFIX_SPACE (1)
#define DEVICE_ACCESS_MAXLEN (3)
...
...
kernel/extended/plimit/los_ipclimit.c
浏览文件 @
a104497e
...
...
@@ -28,10 +28,10 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef LOSCFG_KERNEL_IPC_PLIMIT
#include "los_ipclimit.h"
#include "los_process_pri.h"
#ifdef LOSCFG_KERNEL_IPC_PLIMIT
STATIC
ProcIPCLimit
*
g_rootIPCLimit
=
NULL
;
#define PLIMIT_IPC_SHM_LIMIT_MAX 0xFFFFFFFF
...
...
kernel/extended/plimit/los_memlimit.c
浏览文件 @
a104497e
...
...
@@ -28,6 +28,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef LOSCFG_KERNEL_MEM_PLIMIT
#include <stdlib.h>
#include <securec.h>
#include "los_config.h"
...
...
@@ -35,7 +36,6 @@
#include "los_process_pri.h"
#include "los_plimits.h"
#ifdef LOSCFG_KERNEL_MEM_PLIMIT
STATIC
ProcMemLimiter
*
g_procMemLimiter
=
NULL
;
VOID
OsMemLimiterInit
(
UINTPTR
limite
)
...
...
kernel/extended/plimit/los_plimits.c
浏览文件 @
a104497e
...
...
@@ -28,12 +28,12 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef LOSCFG_KERNEL_PLIMITS
#include "los_base.h"
#include "los_process_pri.h"
#include "hal_timer.h"
#include "los_plimits.h"
#ifdef LOSCFG_KERNEL_PLIMITS
typedef
struct
PlimiteOperations
{
VOID
(
*
LimiterInit
)(
UINTPTR
);
VOID
*
(
*
LimiterAlloc
)(
VOID
);
...
...
kernel/extended/plimit/los_processlimit.c
浏览文件 @
a104497e
...
...
@@ -28,6 +28,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef LOSCFG_KERNEL_PLIMITS
#include "los_config.h"
#include "los_process_pri.h"
#include "los_process.h"
...
...
@@ -35,7 +36,6 @@
#include "los_task_pri.h"
#include "los_processlimit.h"
#ifdef LOSCFG_KERNEL_PLIMITS
STATIC
PidLimit
*
g_rootPidLimit
=
NULL
;
VOID
PidLimiterInit
(
UINTPTR
limit
)
...
...
kernel/extended/plimit/los_schedlimit.c
浏览文件 @
a104497e
...
...
@@ -28,10 +28,10 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef LOSCFG_KERNEL_SCHED_PLIMIT
#include "los_schedlimit.h"
#include "los_process_pri.h"
#ifdef LOSCFG_KERNEL_SCHED_PLIMIT
STATIC
ProcSchedLimiter
*
g_procSchedLimit
=
NULL
;
VOID
OsSchedLimitInit
(
UINTPTR
limit
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录