Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

17 results about "Function pointer" patented technology

A function pointer, also called a subroutine pointer or procedure pointer, is a pointer that points to a function. As opposed to referencing a data value, a function pointer points to executable code within memory. Dereferencing the function pointer yields the referenced function, which can be invoked and passed arguments just as in a normal function call. Such an invocation is also known as an "indirect" call, because the function is being invoked indirectly through a variable instead of directly through a fixed identifier or address.

Dynamic calling method and system for kernel underived function

The invention provides a method and a system for dynamically calling a kernel unexported function, which are used for dynamically acquiring a function address of an unexported kernel function and forcibly calling the function through a kProbes mechanism, matching with a function pointer type definition and a mechanism for forcibly converting the function address into a function pointer. The method not only supports the calling of the kernel function which is not exported, but also does not need to carry out hard coding on the address of the called kernel function, supports the dynamic acquisition of the address of the kernel function, avoids the change of the coincidence address caused by the difference of kernel versions, greatly enhances the compatibility of the software package of the kernel function which is not exported, and improves the reliability of the software package. And the packet does not need to be recompiled in each kernel small version, so that the problem that the kernel symbol table is not matched and the kernel module cannot be loaded is avoided.
Owner:CHINA UNICOM DIGITAL TECNOLOGY CO LTD

Graph rendering method and device, computer equipment, readable storage medium and product

The invention relates to a graph rendering method and device, computer equipment, a readable storage medium and a product. The method comprises the steps of calling an interface function driven by a first DRI in response to a graphic rendering request; wherein the first interface function is used for returning to a structural body, the structural body comprises a function pointer of a first DRI drive and a function pointer of a second DRI drive, and at least one function of the second DRI drive is different from the function of the first DRI drive; calling a first rendering function based on a function pointer driven by the first DRI; and in the process of processing the graphic rendering request through the first rendering function, if the graphic rendering request relates to a first function in the at least one function, calling a second rendering function based on a function pointer driven by a second DRI to perform graphic rendering. By adopting the method, the graphic rendering effect can be improved.
Owner:MOORE THREADS TECH CO LTD

A non-restart code repair method using memory gaps

The application discloses a non-restart code repair method using memory gaps, comprising the following steps: screening target objects of repair codes; searching memory layout, managing and storing information of retrieved memory gaps, and matching space information corresponding to the repair codes; generating a code repair scheme by comparing modification requirements of functions in the repair codes, replacing modified function pointers or parameter structures of the functions; updating information of a kernel symbol table; writing data and data structures required to be repaired by the target objects into the memory gaps, generating a kernel module according to the code repair scheme, and realizing code repair of a non-restart system by loading the kernel module and using a HOOK mechanism. The application is suitable for different types of code repair patches in real environments and has good universality.
Owner:JIANGSU AEROSPACE LONGMENG INFORMATION TECH CO LTD

An executable engineering dynamic loading and debugging method based on RISC-V

The present application relates to a kind of executable engineering dynamic loading and debugging method based on RISC-V, based on the original engineering containing static library generates main engineering and independent executable engineering;Increase the dynamic call running interface function written with assembly language in main engineering, so that main engineering can load the executable file generated by executable engineering;Executable engineering establishes a function pointer table for calling main engineering function, realizes the call to main engineering function;The main engineering and independent executable engineering are dynamically debugged respectively;In debugging engineering, create adaptive processing function of debugging print information, so that program can automatically identify current environment, such as in debugging environment, then carry out normal output debugging information, such as in non-debugging environment, program can skip output debugging information interrupt instruction and continue running. Realize the flexible inter-module function call mode based on RISC-V processor and realize the environment adaptive processing function of debugging print information.
Owner:ZHEJIANG DALI TECH

VSIPL vector library function test method and device

PendingCN121880156AError detection/correctionAlgorithmFunction pointer
The invention belongs to the technical field of embedded software testing, and provides a VSIPL vector library function testing method and device.The method comprises the steps that operator functions to be tested are classified and abstracted into uniform function pointers, test cases are constructed based on the function pointers, and a corresponding relation table of the test cases and VSIPL data object specifications is established; automatically generating a matched VSIPL data object according to the relation table, calling the operator function to be tested and the reference operator function corresponding to the operator function to perform calculation on the same data, outputting a test result based on a calculation result and consumed time, and releasing resources. According to the method, on-demand self-adaptive generation of test data and unified scheduling of operator functions are realized through a cooperation mechanism of a function pointer and a relation table, the automation degree, coverage integrity and cross-platform verification efficiency of VSIPL vector library test are remarkably improved, batch performance and precision evaluation is supported, and the method is suitable for popularization and application. And the correctness and the acceleration effect of the optimized version function are effectively ensured.
Owner:XIAN AVIATION COMPUTING TECH RES INST OF AVIATION IND CORP OF CHINA

Program running method and device

A program running method and a device are described for improving efficiency of running an application. The method includes obtaining a dynamic image of an application, where the dynamic image includes a trampoline function pointer segment, the trampoline function pointer segment includes at least one trampoline function pointer, the at least one trampoline function pointer corresponds to at least one interface, and the at least one interface includes an interface of a kernel or an interface of a common code library The method also includes calling the interface of the kernel or the interface of the common code library based on the trampoline function pointer segment, to run the application.
Owner:HUAWEI TECH CO LTD

Neural network adaptive architecture system for business intelligent decision

PendingCN121879987AProgram initiation/switchingResource allocationFunction pointerAddress bus
The invention relates to the technical field of neural network middleware underlying scheduling, and discloses a neural network adaptive architecture system for business intelligent decision making. Comprising a feature extraction module for extracting a dimension feature identifier of an operator to be executed, a kernel mapping engine for matching a target operator kernel according to the dimension feature identifier, a scheduling execution unit for modifying a bottom layer function pointer according to the target operator kernel and executing a chain type entry pre-binding regulation, and a control module for controlling the scheduling execution unit to execute the chain type entry pre-binding regulation. According to the method, logic jump between operators is converted into hardware-level addressing through space-time overlapping of a calculation period and an addressing period, the scheduling arbitration overhead at the operator boundary is eliminated, the zero pause feeling of an instruction supply end is guaranteed, and the instruction sequence is pushed to the instruction high-speed cache through the address bus idle period when prediction fails. And the energy efficiency ratio and response certainty limit of the system are improved.
Owner:SHENZHEN DIGITAL CONVERGENCE TECH CO LTD

A method, system, device, and medium for algorithmic selection

ActiveCN114968606BParallel computingFunction pointer
This invention relates to the field of encryption machines and discloses a method, system, device, and medium for algorithm optimization. The method includes: creating a mutex lock and a function pointer to an algorithm, and creating corresponding threads based on different implementations of the algorithm; starting the threads and executing the algorithm implementation corresponding to each thread; preempting the mutex lock according to the execution sequence; obtaining the thread that has locked the mutex lock and is pointed to by the function pointer, thereby obtaining the optimal implementation of the algorithm. This disclosed method facilitates the selection of the optimal algorithm in the current execution environment, and therefore allows for dynamic selection of the algorithm implementation according to actual needs, making it more flexible in use and operation.
Owner:INSPUR SUZHOU INTELLIGENT TECH CO LTD

Function calling method, electronic equipment, storage medium and program product

The invention provides a function calling method, electronic equipment, a storage medium and a program product. Before simulation of a to-be-tested object is carried out, in the compiling process of the to-be-tested object, statistics is directly carried out on related compiling data of function data contained in the to-be-tested object, and a query information table is formed. Afterwards, during simulation, query results such as a function pointer and a return value offset address of the corresponding function data can be directly determined from the query information table according to a target object pointed by current simulation of the object to be tested and related information of a simulation instruction, and finally, specific calling of the function is performed according to the query results. In this way, in the application process, the incidence relation between the corresponding calling module and the to-be-tested object is decoupled, the compiling performance of the simulator is improved, and the memory space consumed in the simulation stage is reduced. And corresponding code utilization and code maintainability are improved regardless of segmentation compilation and non-segmentation compilation.
Owner:芯华章智能科技(上海)有限公司

SDK calling method and device, computer device and storage medium

The application relates to the technical field of process optimization, and provides an SDK calling method and device, computer equipment and a storage medium. The method comprises the following steps: receiving a processing request carrying a function parameter; querying SDK information of a preset third-party application according to the processing request to obtain a third-party application function class corresponding to the processing request, performing a non-empty judgment on the third-party application function class to obtain a judgment result; when the judgment result is non-empty, obtaining a function function pointer address of the third-party application corresponding to the processing request according to the processing request; obtaining an initialization function function according to the third-party application function class and the function function pointer address; assigning the initialization function function according to the function parameter to obtain a target function function; and calling the target function function to process the processing request. The method can enable a small program SDK to normally process a processing request.
Owner:PING AN TECH (SHENZHEN) CO LTD

Method for modularly adapting a programmable controller

The invention relates to a method for modularly adapting a programmable controller, comprising: providing a basic runtime system; defining unambiguous references in the basic runtime system in a prescribed order (S1, S2, S3; 330, 332, 334; 402, 404, 406, 408, 410, 412, 414); providing at least one function object (100; F1, F2, F3; 320, 322) having one or more methods (104) to be implemented and having at least one function pointer to one or more of the methods, wherein each function pointer is linked with a defined unambiguous reference; and executing at least one of the provided function objects (100; F1, F2, F3; 320, 322) based on the linked unambiguous references.
Owner:ROBERT BOSCH GMBH

API test system and method for communication module

PendingCN121309433ATransmissionProtocol designOriginal data
The invention relates to the technical field of API testing, and discloses an API testing system and method for a communication module, the API testing system for the communication module comprises a communication interface module, the communication interface module establishes a full duplex link with a PC end through a serial port, receives a text instruction original data stream of the PC end, and sends the text instruction original data stream to the PC end; the protocol analysis module is used for accurately matching and extracting APINAME from an original data stream of a text instruction in a full character string manner to obtain a corresponding callback function pointer cb, and the parameter mapping module is used for analyzing and converting the text instruction into a memory data structure required for calling a C language function. Through mutual cooperation of module composition, a text protocol design format, an input parameter data format, a result response format and a URC asynchronous response format, an automatic and standardized API test process is completed in cooperation with a python script, and the test efficiency and accuracy are improved.
Owner:ZHEJIANG LIERDA INTERNET OF THINGS TECH

Dynamic calling method and system for non-exported functions of kernel

The application provides a kernel non-exported function dynamic calling method and system. Through a kprobes mechanism, a function pointer type definition and a function address forced conversion to a function pointer mechanism, the function address of the non-exported kernel function is dynamically acquired and the function is forced to call. After the program is adapted and modified, the calling of the non-exported kernel function is supported, the hard-coded address of the called kernel function is no longer needed, the kernel function address is dynamically acquired, the address change caused by the kernel version difference is avoided, the compatibility of the non-exported kernel function software package is greatly enhanced, the package does not need to be recompiled for each kernel minor version, and the problems of the kernel symbol table mismatch and the kernel module unable to be loaded are avoided.
Owner:CHINA UNICOM DIGITAL TECNOLOGY CO LTD

Function pointer pointing analysis method, device and system based on continuation passing

ActiveCN117290020BExecution paradigmsControl flowContinuation
The application discloses a function pointer pointing analysis method, device and system based on continuation transmission, which comprises the following steps: selecting a point of interest function pointer, and initializing a related continuation transmission list and a pointing set; starting from a statement where the point of interest function pointer is located, performing intraprocedural analysis on a program in the direction opposite to a control flow, saving intraprocedural analysis results by using a function abstract, and updating the continuation transmission list and the pointing set according to the function abstract; if interprocedural action information is encountered, performing intraprocedural analysis on a function affected based on an influence generated by the interprocedural action information, returning to a direct predecessor of a statement where the interprocedural action information appears after the analysis is finished, and continuing to perform intraprocedural analysis; and when it is judged that the continuation transmission is in a termination state based on the continuation transmission list, outputting a corresponding pointing set. The application saves interprocedural action information of a program by using the characteristics of continuation transmission, takes out the information to return to intraprocedural calculation to obtain a result when needed, and improves the accuracy of pointer analysis.
Owner:NANJING UNIV OF POSTS & TELECOMM

Audio frame data processing method and device, computer equipment and storage medium

PendingCN121614101ASound input/outputComputer hardwareFunction pointer
The invention discloses an audio frame data processing method and device, computer equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: creating an audio player and a buffer queue; modifying an enqueue function pointer of the buffer queue from pointing to a native enqueue function to pointing to a proxy enqueue function; in response to a calling instruction for the enqueue function pointer, acquiring an agent enqueue function pointed by the enqueue function pointer and audio frame data indicated by the calling instruction, the length of the audio frame data being equal to the original length; and filling the audio frame data with the target length into the buffer queue through the proxy enqueue function when the length of the acquired and unfilled audio frame data is not less than the target length. According to the method and the device, the original code logic does not need to be modified, and on the basis of not invading the original code logic, the length of the single transmission audio frame data is flexibly adjusted, so that the development cost of adjusting the single transmission length is reduced, and the operability and the flexibility are improved.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Controller, program execution method, and electronic device

The application discloses a controller, a program execution method and an electronic device, and belongs to the technical field of integrated circuit design. A first storage area of the controller is configured to store first instruction codes of an application program, the first instruction codes include at least one target function position, a function at the target function position is a function to be updated, and a function pointer corresponding to the function to be updated is further configured at the target function position. A processor of the controller is configured to acquire second machine codes, store the second machine codes in a second storage area, and the second machine codes are results after the function to be updated at the at least one target function position is updated. The first machine codes are executed, and in the case that the first machine codes are executed to the target function position, the second machine codes in the second storage area matched with the function pointer are executed according to the function pointer at the target function position. Therefore, the flexibility of program updating can be improved.
Owner:BEIJING ESWIN COMPUTING TECH CO LTD

Function redirection method and device and electronic equipment

The invention discloses a function redirection method and device and electronic equipment, configuration information is read and analyzed, and the configuration information comprises function information of a target function needing to be redirected; on the basis of the function information, obtained through analysis, of the target function, a function pointer of the target function is generated, parameter information corresponding to calling and executing a redirection function is called and executed, the function pointer of the target function points to a function address of the target function, and the redirection function is a function actually executed after redirection; generating a redirection code based on the function pointer of the target function and the parameter information corresponding to the redirection function; and executing the redirection codes to redirect the target functions, so that the redirection codes corresponding to the target functions can be respectively generated under the condition that the functions needing to be redirected comprise a plurality of target functions, repeated codes do not need to be manually written for multiple times, the coding efficiency can be improved, and the function redirection efficiency can be improved.
Owner:HANGZHOU CHANGCHUAN TECH CO LTD