#include"kernel.h" #define WRONG_THREAD_ID -1 #define WRONG_SEMAPHORE_ID -2 #define WRONG_THREAD_STATE -3 #define WRONG_CAP…
capability 源代码
Capability技术是现代电子设计中不可或缺的一环,它涵盖了从基础电路到高级系统架构的多种能力分析与优化方法。在消费电子、通信设备、汽车电子等领域有着广泛的应用,能够显著提升产品的性能与可靠性。掌握Capability相关知识,不仅有助于工程师解决实际项目中的复杂问题,还能促…
#ifndef OS_FILE_CAPABILITY #define OS_FILE_CAPABILITY struct user_file_information{ int memory_body_id,system_file_id,map_le…
#include "kernel.h" #define WRONG_CAPABILITY -1 #define WRONG_PROCESS_NUMBER -2 #define WRONG_PROCESS_STATE -3 #define EX…
#ifndef OS_KERNEL_SYSTEM_CALL #define OS_KERNEL_SYSTEM_CALL union system_call_parameter{ struct kernel_capability{ struct…
#ifndef OS_KERNEL_KERNEL #define OS_KERNEL_KERNEL #include"const.h" #include"capability.h" #include"arch.h" #include"time.h…
#ifndef OS_KERNEL_CAPABILITY #define OS_KERNEL_CAPABILITY struct capability { int c1,c2,c3,c4; }; #define COMPARE_CAPABI…
#include "kernel.h" #define FLAG_1 ((current.env->system_call_arg1>=0)?TRUE:FALSE) #define ABS_1 ((current.env->system_call_ar…
#ifndef OS_PROCESS_STRUCT #define OS_PROCESS_STRUCT struct thread_physical_block { int stack_memory_id,stack_block_id; int…
#include"kernel.h" #define WRONG_SEMAPHORE_ID (-1) #define WRONG_CAPABILITY (-2) int reset_semaphore_value(int sem_id,struct c…
#ifndef OS_FUNCTION_CALL #define OS_FUNCTION_CALL extern void init_file_information(void ); extern int set_system_file_capabi…