Oopenvela-robotenv_unsetenv.c: fix coverity issue
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
environ: move the environ from sched/environ to libc/environ change the environ implementation from sched/environ to libc/environ, thus we can access the environ related API can vai libc directl, which could improve the access speed in kernel build. And in order to support this modification, we change the struct task_info_s's ta_lock from nxmutex_t to nxrmutex_t, this is because the env_*-related APIs require the ta_lock to be reentrant. If recursive locks are not supported, it may lead to deadlocks in certain scenarios. For example, during initialization on the qemu-miwear platform, it is necessary to call getenv while already holding the ta_lock. To support such cases, we need to change the ta_lock from nxmutex_t to nxrmutex_t. Signed-off-by: guoshichao <guoshichao@xiaomi.com> | 2 个月前 | |
environ: move the environ from sched/environ to libc/environ change the environ implementation from sched/environ to libc/environ, thus we can access the environ related API can vai libc directl, which could improve the access speed in kernel build. And in order to support this modification, we change the struct task_info_s's ta_lock from nxmutex_t to nxrmutex_t, this is because the env_*-related APIs require the ta_lock to be reentrant. If recursive locks are not supported, it may lead to deadlocks in certain scenarios. For example, during initialization on the qemu-miwear platform, it is necessary to call getenv while already holding the ta_lock. To support such cases, we need to change the ta_lock from nxmutex_t to nxrmutex_t. Signed-off-by: guoshichao <guoshichao@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
environ: move the environ from sched/environ to libc/environ change the environ implementation from sched/environ to libc/environ, thus we can access the environ related API can vai libc directl, which could improve the access speed in kernel build. And in order to support this modification, we change the struct task_info_s's ta_lock from nxmutex_t to nxrmutex_t, this is because the env_*-related APIs require the ta_lock to be reentrant. If recursive locks are not supported, it may lead to deadlocks in certain scenarios. For example, during initialization on the qemu-miwear platform, it is necessary to call getenv while already holding the ta_lock. To support such cases, we need to change the ta_lock from nxmutex_t to nxrmutex_t. Signed-off-by: guoshichao <guoshichao@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
env_unsetenv.c: fix coverity issue info is checked whether NULL after it has been used in nxrmutex_lock Signed-off-by: liaoao <liaoao@xiaomi.com> | 2 个月前 | |
env_dup:dup env need use info->ta_heap Signed-off-by: anjiahao <anjiahao@xiaomi.com> | 2 个月前 |