
mcm_daemon
The main program of data management provides data fetching services. It uses Unix Domain Socket to communicate with other programs. Multiple connections can be accepted at the same time. Each connection will establish an execution thread processing. Read requests can be used at the same time. Write requests can only be used by one program at the same time (read and write locks are combined with first-in, first-out queues).
[custom data handle]
Customized data processing function library, the application of processing data. After other programs modify data, you can specify which processing function to execute for processing. For example, other programs want to modify the address of the network interface, first set a new network interface address, and then specify to execute the functions that modify the network interface in the data processing function library. After the function that modifys the network interface is executed by mcm_daemon, the new network interface address is taken out and applied to the network interface. This part will be compiled into a dynamic link function file for mcm_daemon.
libmcm_lulib_api.so
Provide interface (C function) to access data to other user-side (User Space) programs.
User Space Program
A user-side program that requires data access services.
mcm_lklib_api.ko
Provide interface (C function) to access data for other core (Kernel Space) programs.
Kernel Space Program
A core program that requires data access services.
mini_httpd
HTTP Server used.
mcm_cgi_config.cgi
To handle data access in web programs, this program will automatically process data access on the web page. There is no need to manually write an access program for each data table. For obtaining information, the web page will use AJAX POST to tell which data tables are needed. This program will communicate with mcm_daemon to retrieve the specified data and combine it into JSON format to send it back to the web page. For modifying information, the web page will use AJAX POST to tell which data to be modified, and this program will notify mcm_daemon to what data to be modified.
[custom config handle]
Customized data filtering function. Generally, when reading data from the data table, all the data in the data table will be read out. Use the custom filtering function to specify that only a few data in the data table can be read. This part will be compiled into a dynamic link function file for mcm_cgi_config.cgi to use.
mcm_cgi_upload.cgi
Process the upload of web programs, use the upload form to process, and supports the use of multipart/form-data to upload multiple elements or archives in the form at the same time.
[custom upload handle]
Customized file processing functions to process files uploaded by web programs. This part will be compiled into a dynamic link function file for mcm_cgi_upload.cgi to use.
mcm_jslib_api.js
Provide an interface to web programs to access data and upload files. The data access part uses the AJAX + JSON mechanism, and the file upload part uses the form mechanism.
Web Program
A web-side program that requires data access services.
mcm command
Instruction program, this command program can be used in Shell Script for data access.
Shell Script Program
Shell Script-side program that requires data access services.
The detailed instructions for use are in mint_cm/usage/zh-TW/mcm_index.html
Authorization description file is in mint_cm/README