- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
56 lines
1.5 KiB
C
56 lines
1.5 KiB
C
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
#ifndef _SYSTEM_H_OAI_
|
|
#define _SYSTEM_H_OAI_
|
|
#include <stdint.h>
|
|
#include <pthread.h>
|
|
#include <stdbool.h>
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
/****************************************************
|
|
* send a command to the background process
|
|
* return -1 on error, 0 on success
|
|
****************************************************/
|
|
|
|
int background_system(char *command);
|
|
|
|
/****************************************************
|
|
* initialize the background process
|
|
* to be called very early
|
|
****************************************************/
|
|
|
|
void start_background_system(void);
|
|
|
|
void lock_memory_to_ram(void);
|
|
|
|
bool has_cap_sys_nice(void);
|
|
void threadCreate(pthread_t *t, void *(*func)(void *), void *param, char *name, int affinity, int priority);
|
|
|
|
#define SCHED_OAI SCHED_RR
|
|
#define OAI_PRIORITY_RT_LOW sched_get_priority_min(SCHED_OAI)
|
|
#define OAI_PRIORITY_RT ((sched_get_priority_min(SCHED_OAI)+sched_get_priority_max(SCHED_OAI))/2)
|
|
#define OAI_PRIORITY_RT_MAX sched_get_priority_max(SCHED_OAI)-2
|
|
|
|
void thread_top_init(char *thread_name,
|
|
int affinity,
|
|
uint64_t runtime,
|
|
uint64_t deadline,
|
|
uint64_t period);
|
|
|
|
/****************************************************
|
|
* Functions to check system at runtime.
|
|
****************************************************/
|
|
|
|
int rt_sleep_ns (uint64_t x);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif /* _SYSTEM_H_OAI_ */
|