US 12,367,019 B2
Method and apparatus for implementing batch system call
Xin Gao, Shenzhen (CN); Yuzhong Wen, Hangzhou (CN); Bin Fang, Shanghai (CN); and Hai He, Hangzhou (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Filed on Aug. 4, 2023, as Appl. No. 18/365,312.
Application 18/365,312 is a continuation of application No. PCT/CN2022/071747, filed on Jan. 13, 2022.
Claims priority of application No. 202110163179.2 (CN), filed on Feb. 5, 2021.
Prior Publication US 2023/0376289 A1, Nov. 23, 2023
Int. Cl. G06F 8/41 (2018.01)
CPC G06F 8/42 (2013.01) 17 Claims
OG exemplary drawing
 
1. A method for implementing a batch system call, comprising:
loading an executable program to a user-mode virtual address space, wherein the executable program is obtained by compiling source code of the batch system call, and the executable program comprises abstract syntax tree (AST) data of the batch system call; and
invoking a first instruction, wherein the first instruction, when executed, causes a kernel to read the AST data from the user-mode virtual address space, and generate, based on the AST data, binary code for implementing the batch system call, the binary code being stored in a kernel-mode virtual address space.