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

105 results about "Callback" patented technology

In computer programming, a callback, also known as a "call-after" function, is any executable code that is passed as an argument to other code that is expected to call back (execute) the argument at a given time. This execution may be immediate as in a synchronous callback, or it might happen at a later time as in an asynchronous callback. Programming languages support callbacks in different ways, often implementing them with subroutines, lambda expressions, blocks, or function pointers.

Virtual block device implementation methods, apparatus, media, and computer program products

This disclosure provides a method, apparatus, medium, and computer program product for implementing a virtual block device. The method includes: creating a virtual block device located between a file system and a physical block device, the virtual block device being used to forward a first block input / output request submitted by the file system to a physical block device bound to the virtual block device, and performing callback management on the first block input / output request; in response to a fault, maintaining the virtual block device's ability to receive the first block input / output request submitted by the file system, and unbinding the virtual block device from the physical block device; and in response to fault recovery, rebinding the virtual block device to the physical block device.
Owner:ZTE CORP

Safety acquisition software plug-in implementation method and system for power monitoring system

The invention discloses a method and a system for realizing a security acquisition software plug-in with dynamic characteristics for an electric power monitoring system, and aims to solve the problems of difficulty in function extension, insufficient security and poor resource isolation of a traditional electric power monitoring system. According to the system, through a plug-in architecture design, a plug-in function module is realized in a dynamic library form, and dynamic loading, unloading and security isolation operation are supported. The plug-in is started through the sub-process, the main program ensures the legality of the plug-in through SM2 certificate verification, and efficient interaction between the main program and the plug-in is achieved through a callback function mechanism. The plug-in supports dynamic memory allocation, and potential safety hazards caused by predefined field length are avoided. Core rights points of the method comprise plug-in expansion capability, sub-process isolation, SM2 certificate verification, a transparent transmission mechanism and dynamic memory management, and the function expansibility, the safety and the operation stability of the power monitoring system can be remarkably improved.
Owner:NARI INFORMATION & COMM TECH

Method, system and device for automatically analyzing running state of physical layer software

The invention provides a physical layer software running state automatic analysis method, system and device, and the method comprises the steps: implanting statistical dotting information in a key execution node of physical layer software to form a data basis for automatic analysis; in a system initialization stage, a predefined analysis function is registered as a callback function of a user command interface, and the analysis function is configured to be used for collecting and processing statistical dotting information; and during the system operation period, receiving a trigger command through the user command interface to call the analysis function, and outputting the current operation state, the abnormal index and the positioning guidance of the physical layer software based on the processing result of the analysis function on the statistical dotting information. According to the method, the problems of low positioning efficiency, long time consumption and poor accuracy due to dependence on manual analysis of scattered logs in a current baseband physical layer software problem positioning method are solved.
Owner:HUBEI SILANG COMMUNICATION TECHNOLOGY CO LTD

Implementation method and device of js timer

PendingCN122309054AMessage queueCallback
This invention discloses a method for implementing a JS timer, comprising the following steps: Step S1: In a lightweight open-source HarmonyOS system, a JavaScript application creates a JS timer, which specifies a timing period and a callback function. Step S2: The JS timer is added as a task timer in the lightweight open-source HarmonyOS system, and executed by the task management module. Step S3: When the timing period of the task timer expires, an asynchronous message is sent to the JS APP thread, which then executes the asynchronous callback upon receiving the message. This invention automatically stops the JS timer when the device enters a low-power screen-off state, reducing unnecessary system wake-ups and saving device power. If the JS APP thread is busy, the JS timer cannot be scheduled and will not send unprocessable asynchronous messages, avoiding the problem of system crashes due to a full message queue and improving system robustness.
Owner:ASR MICROELECTRONICS CO LTD

Smooer unified authentication access method

The invention discloses a smoother unified authentication access method, and belongs to the technical field of information security. The method comprises the following steps that: an entry control module executes Token existence judgment and address source judgment, and obtains a unified authentication address through a fetch method; the front-end system dynamically creates a hidden iframe loading unified authentication address, and establishes a message monitor; the lightweight callback processing module detects a running environment, extracts code information, and sends the code information to a parent window through a postMessage method; the entry control module receives code information, verifies a source, stores the code information to a temporary variable, and triggers a custom event; and the routing interception authority control module obtains code information, sends an authorized login request to a rear end, stores Token after completing user identity verification, and enters a system. According to the method, authentication is completed in the current page through an iframe and post Message communication mechanism, so that repeated page skipping and repeated resource loading are avoided, non-perception silent authentication is realized, and user experience and system performance are improved.
Owner:云鼎科技股份有限公司

Business execution method and device, equipment, medium and program product

The invention provides a service execution method and device, equipment, a medium and a program product, and can relate to the computer network technology, and the method comprises the steps that a service module in a first controller responds to a service execution request for a target service, and arranges the target service into M to-be-executed tasks, selecting a target to-be-executed task needing to wait for an execution result from the M to-be-executed tasks; wherein M is a positive integer; the business module calls a task callback interface to transmit an identifier of the target to-be-executed task to a feedback module in the first controller; the business module inserts the target to-be-executed task into the task queue, so that the second controller obtains the target to-be-executed task from the task queue and executes the target to-be-executed task; and the feedback module obtains the execution result of the target to-be-executed task, and feeds back the execution result of the target to-be-executed task to the business module through the task callback interface, so that on one hand, the resource waste of the controller can be reduced, and on the other hand, the business execution efficiency can be improved.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Intelligent mine management and control platform and method based on whole process optimization large model of mineral processing

The application discloses an intelligent mine management and control platform and method based on a beneficiation whole-process optimization large model, relates to the technical field of industrial control, and comprises the following steps: constructing a unified data warehouse, collecting multi-source heterogeneous data, performing quality verification and space-time alignment, and generating beneficiation data; using the beneficiation data to train a twin prediction sub-model and an optimization decision sub-model respectively, forming a linkage model set; running the linkage model set in the intelligent mine management and control hub node to generate future state trends and candidate set values, and distributing the candidate set values to each business item; each business item forms an optimization instruction according to the candidate set value and a preset optimization target, and issues the optimization instruction to the bottom control layer for execution; and the new beneficiation data generated by the execution is returned to the unified data warehouse. The application constructs a callback closed loop in an application programming interface, prepositions the candidate set value as a twin prediction input, and returns the candidate set value in the same data closed loop, so that the cross-business item execution stability is improved.
Owner:CHANGCHUN GOLD DESIGN INST

Component updating method, device and equipment and computer readable storage medium

The invention discloses a component updating method and device, equipment and a computer readable storage medium, and the method comprises the steps: intercepting a modification operation of a state attribute of a memory address in a target state container instance through a set interceptor of a proxy object, and determining an attribute key value corresponding to the modification operation; searching a component subscription callback function of the target state attribute corresponding to the dependency attribute key value from a subscriber set corresponding to the target state container instance; and obtaining the modified state attribute value by using the component subscription callback function, and updating the target component corresponding to the component subscription callback function according to the modified state attribute value. According to the method, the probability of page jamming is greatly reduced, the problem of global state pollution is avoided, and real component-level sandbox isolation is realized.
Owner:HANGZHOU HONGSHU INFORMATION TECH CO LTD

A transition animation implementation method and device, terminal equipment and storage medium

Embodiments of the present application disclose a transition animation implementation method and device, terminal equipment and medium, the method comprising: triggering a callback function when a preset element change is detected by a listener function; obtaining size data of the preset element through the callback function, and assigning the size data of the preset element to a size attribute in a transition style of an outer element; wherein the preset element is nested in the outer element; and performing a transition animation of the size of the outer element based on the latest data of the size attribute in the transition style. By directly listening to the preset element and triggering the callback function after detecting the change, the size data of the preset element is obtained, which has a greater performance improvement compared to traversing the entire HTML document to find the preset element through the DOM interface after the rendering event occurs, and then obtaining the size data of the preset element. In addition, the transition animation only needs to be bound to the preset element, without the need to bind each rendering event, thereby improving the maintainability and development efficiency of the code.
Owner:BEIJING JINGDONG TUOXIAN TECH CO LTD

Programming method and related device

PendingCN121858088AVisual/graphical programmingCode generationAsynchronous operation
The invention discloses a programming method and a related device, a first operation building block is provided, the first operation building block comprises a first operation slot position and a first callback function slot position, the first operation slot position is used for receiving operation information of first operation, and the first callback function slot position is used for receiving function information of a first callback function. In response to the fact that the first operation building block is added to the to-be-executed event, the first programming code can be generated according to the operation information of the first operation, the function information of the first callback function and the first code template corresponding to the first operation building block, and then the event programming code corresponding to the to-be-executed event is generated according to the first programming code. The first programming code comprises a first operation code corresponding to the first operation and a callback code corresponding to the first callback function. The first operation building block is an asynchronous operation building block, the first callback code is executed after the first operation code is executed, other operations can be executed in parallel with the first operation, program blocking is reduced, and operation execution efficiency is improved.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Timer life cycle management method and device, equipment and storage medium

The invention provides a timer life cycle management method and device, equipment and a storage medium, a system timer object is created through a timer management instance, a timer callback function is registered in an operating system timed task interface, when a cycle corresponding to a timed cycle field is reached, task logic in a task function field is automatically triggered, and the timed task is automatically called. Therefore, precise scheduling and unified management of the timed tasks are realized. By setting the instance identification field and the running state flag field in the timer management information, each timer object can be uniquely identified and tracked, and the problem of repeated creation or state disorder is avoided. Furthermore, a stop signal is received through a monitoring coroutine in a stop stage, so that the safe termination of a timed task and the automatic release of resources are realized, and the reliable recovery of a timer and the stable operation of the system are ensured.
Owner:GUANGZHOU BAOLUN ELECTRONICS CO LTD

Data management method and device, equipment, medium and program product

The invention provides a data management method which can be applied to the technical field of big data. The data management method is executed in a user space file system and comprises the steps that an operation request for a first logic path file is received through a virtual file system, and the operation request is from a user program; the operation request is routed to a kernel driver, a callback function corresponding to the operation request is called, and the callback function is registered by a user program; on the basis of the callback function, a pre-established metadatabase is inquired, metadata corresponding to the first logic path is obtained, and the metadata at least comprises the mapping relation between the logic path and the physical path; and executing an operation corresponding to the operation request based on the metadata. The invention further provides a data management device and equipment, a storage medium and a program product.
Owner:NAT ASTRONOMICAL OBSERVATORIES CHINESE ACAD OF SCI

Method for coding and decoding field with unlimited length based on nanoopb

The invention discloses a method for encoding and decoding a field with unlimited length based on nanoopb, and belongs to the technical field of computers. According to the method, after a nanoopb tool automatically generates a code according to a. Proto file, a coding and decoding process is improved through the following steps: firstly, identifying all fields with unlimited lengths in a message, and replacing the data type of the fields with a self-defined dynamic array type; then replacing an initial value in the initialization macro and a callback function macro; and finally, realizing a unified custom callback function to process coding and decoding operations of all the fields with unlimited lengths. According to the method disclosed by the present invention, by packaging bottom layer Protobuf coding and decoding details, developers can complete serialization / deserialization operation without mastering complex coding rules and callback APIs, so that the learning cost is effectively reduced, the readability and maintainability of codes are significantly improved, and the method is suitable for resource-limited embedded system development.
Owner:FUJIAN BEIFENG COMM TECH CO LTD

Blockchain-based data processing method and apparatus, device, storage medium, and program product

This application discloses a blockchain-based data processing method performed by a computer device. The method includes: determining a token identification in response to a resource reception request; calling a general callback function in a smart contract of a blockchain and determining M virtual resources having the token identification issued by an issuing object in the blockchain; acquiring a resource attribute of the M virtual resources and determining a token attribute corresponding to the token identification based on the resource attribute of the M virtual resources, the issuing object holding a target virtual resource in the M virtual resources, and the M being a positive integer; and determining a resource identification of the target virtual resource transferred to a receiving object based on the token attribute of the token identification, the resource identifications corresponding to different token attributes being different.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Method and device for realizing asynchronization of synchronous network model, and distributed system

PendingCN121907852ATransmissionEngineeringSynchronous network
The invention discloses a synchronous network model asynchronization implementation method and device and a distributed system, and the method comprises the steps: initiating a service request through a sending thread pool, and recording task context information associated with the request after the request is sent; receiving a request result returned by the three-party server by using a receiving thread pool, performing reverse search in the task context information based on at least part of information carried in the request result, and matching a corresponding to-be-processed task; after successful matching, triggering an asynchronous callback function pre-registered by the user to complete service processing logic; based on a preset timing index structure, the overtime task is cleared, and the timing index structure at least comprises multiple pieces of task information sorted according to the task deadline. According to the invention, on the premise of not depending on underlying network control, asynchronous packaging of the synchronous interface is realized, and the throughput and response timeliness of the system are remarkably improved.
Owner:CSC FINANCIAL CO LTD

Theme synchronization switching methods, devices, electronic equipment and storage media

This application discloses a theme synchronization switching method, apparatus, electronic device, and storage medium. The method includes: registering a corresponding callback function for a theme information change operation; obtaining the triggering condition corresponding to the theme information change operation by executing the callback function; updating the processing function for theme synchronization switching based on the obtained triggering condition; and executing the processing function when the triggering condition is met to complete the synchronous switching of themes on different screens. The theme synchronization switching method, apparatus, electronic device, and storage medium provided by this invention can improve the success rate of theme consistency and eliminate the unnecessary action of manually switching themes.
Owner:CHINA FAW CO LTD

Interrupt response time detection method and device, equipment, medium and program product

PendingCN121935123AMeasure interrupt response speedresolve dependenciesHardware monitoringCallbackSystem time
The invention relates to an interrupt response time detection method and device, equipment, a medium and a program product. The interrupt response time detection method comprises the steps that in response to monitoring that a timer used for interrupt response time detection in an operating system is overtime, a detection program reads a first timestamp from character equipment in a kernel mode of the operating system and triggers the character equipment to send an event notification signal to the detection program, the detection program is a program used for detecting the interrupt response time in a user mode of the operating system, and the first timestamp is a timestamp when the operating system generates the current interrupt; in response to the received event notification signal, the detection program calls a callback interface corresponding to the event notification signal in a user mode in the operating system, and obtains a second timestamp from the callback interface, the second timestamp being a timestamp that the operating system starts to process the current interruption by using the callback interface; based on the first timestamp and the second timestamp, the detection program determines an interrupt response time for the current interrupt.
Owner:WUHAN SHENZHIDU TECH CO LTD

Generative artificial intelligence for content generation with searchable repository

A system may include a content repository that stores multi-modal content comprising text, visual content, and / or audio content. The system may include a processor programmed to: access a prompt comprising a text query, a visual query comprising text that describes a visual to be found, and / or an audio query comprising text that describes audio to be found, execute a language model based on the prompt to identify content from the content repository, receive, from the language model, a request for a callback function that seeks additional information to satisfy the multi-modal query, execute the callback function to obtain the additional information and provide the additional information to the language model in response to the request for the callback function, re-execute the language model based on the multi-modal query and the additional information, obtain, from the language model, content responsive to the prompt based on the additional information.
Owner:REVE AI INC

Efficient rule matching method for high-complexity conditional expression rule body

The invention discloses an efficient rule matching method for a high-complexity condition expression rule body, and belongs to the technical field of network flow data packet filtering. And defining priorities among the operators and defining processing callback functions of the operators and the operands. Then, the rule body condition expression is scanned, analyzed and compiled, so that the rule body condition expression is converted into a similar executable binary program which can be executed by a plurality of users, and a result is calculated. Rule body matching: executing the binary programs which can be executed by the rule body type according to the compiled assembly instruction sequence; each calculation result of the expression is stored at the top of the stack, and a final result is stored at the bottom of the stack. According to the method, a lexical analysis method in a compiling principle is taken as a guiding policy, pre-compiling of an expression calculation process is completed, and expression matching calculation is accelerated; and meanwhile, the locality of the matching calculation process is enhanced, and the CPU processing capacity is fully utilized.
Owner:BEIJING SCISTOR TECH

Lightweight attack detection method and device for container host platforms

This invention discloses a lightweight attack detection method and apparatus for container host platforms. The method includes: acquiring the monitored function and vulnerability information to be monitored; creating a `vulner_info` structure based on the vulnerability information name, with the corresponding private structure storing the system call parameters to be checked; when the kernel is about to execute the monitored function, calling a callback function to obtain the system call parameter values ​​generated during the execution of the monitored function; passing the address of the private structure to the callback function to allow the callback function to access the private structure; and comparing the system call parameter values ​​with the system call parameters to be checked to obtain the attack detection result of the monitored function. This invention achieves evasion attack detection with relatively low performance overhead.
Owner:INSTITUTE OF INFORMATION ENGINEERING CHINESE ACADEMY OF SCIENCES

A data processing method and apparatus

The application discloses a data processing method and device, and relates to the technical field of computers. A specific implementation of the method comprises the following steps: receiving a data processing request sent by a requester, wherein the data processing request comprises a callback address; judging whether the data processing request comprises a callback function; if yes, determining a callback parameter value according to parameter information indicated in the callback function, performing redirection processing on the callback address according to the callback function and the callback parameter value; and calling the callback address after the redirection processing to the requester. The implementation increases the autonomous control right of the requester on the callback result, meets the real-time and diversity requirements of the requester, expands the applicable scene of the data processing method, and improves the user experience.
Owner:BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1

A method for protecting designated paths and files from tampering

The present application belongs to the technical field of computer data security, and particularly relates to a method for protecting specified paths and files from tampering, which comprises the following steps: registering a relevant main function code callback routine in a Windows file system filtering driver framework, and constructing an interception layer for intercepting I / O requests; constructing an access control list with PID and file object path as key values in a kernel non-paging memory; synchronously extracting PID and target file complete path in the callback routine, and judging according to system processes, exemption lists, and protection paths / types, and rejecting the request if it does not meet the conditions; and achieving dynamic management of strategies by establishing a control channel. The present application solves the problem of strategy failure caused by volume path changes by hiding file persistent volume IDs in the system; adopts hierarchical data structures and concurrent synchronization mechanisms to ensure efficient queries and little impact on disk IO performance; and supports multi-dimensional fine control with the help of multi-layer control switches and scenario-based templates.
Owner:成都傲梅科技有限公司

Vue component bridging method based on React high-order component

The invention relates to the technical field of front-end Web development, in particular to a Vue component bridging method based on a React high-order component, and the method comprises the steps: packaging a Vue component through a high-order function, and obtaining a packaged React component; providing a DOM (Document Object Model) element as a mounting point of the Vue component; the method comprises the following steps: creating and configuring a Vue instance in a packaged React component, mounting the Vue instance in a mounting point, and converting ReactProps of the React component into response type data of the Vue; the response type data is injected into the Vue component, and a Props synchronization mechanism is established; the event callback attribute transmitted by the React component is mapped into an event monitor of the Vue component, and cross-framework transmission of the event is completed; and destroying the Vue instance when the React component is unloaded. Therefore, the problems of complex Props transmission, inconvenient event monitoring, asynchronous life cycle management and the like in the prior art are solved.
Owner:BEIJING BAILONG MAYUN TECH CO LTD

Coroutine-based key-value storage system write optimization scheduling method, task scheduler and key-value storage system

PendingCN122431818APathPingOperational system
The application discloses a kind of based on the write optimization scheduling method of key-value storage system of coroutine, task scheduler and key-value storage system, by encapsulating write request as coroutine task, avoid operating system kernel context switching storm;Second, by introducing the queue state perception scheduling strategy for three queues, efficient overlap of processor execution phase and disk execution phase is realized, the resource utilization of processor and disk is significantly improved, and the scheduling strategy is according to the order of I / O task completion queue priority highest, post task queue second, write request queue lowest, so that the key processing path after disk persistence completion can be executed preferentially, and the next batch of write request is awakened in time, so as to reduce the overall waiting time of write request and system write delay;Third, the completion state is detected by independent I / O polling task, instead of using interrupt or callback mode, avoid the kernel state and user state switching overhead caused by interrupt processing.
Owner:HUAZHONG UNIV OF SCI & TECH +1

Large language model ternary quantization and text generation method based on iterative parameter optimization

PendingCN122472142AText entryCallback
The application provides a large language model ternary quantization method based on iterative parameter optimization and a text generation method, the quantization method comprising: inputting sample text into a pre-trained large language model, running a forward inference process, and collecting activation values of each quantization layer by using a callback function; for each weight matrix to be quantized, constructing an approximate weight composed of a scaling factor, a ternary matrix, and a bias; designing a judgment threshold, initializing the ternary matrix according to the judgment threshold; initializing the scaling factor and the bias; constructing an activation-aware error function based on calibration data, and iteratively updating the scaling factor, the bias, and the ternary matrix to minimize the activation-aware error; and generating quantized weights by using the optimized scaling factor, the bias, and the ternary matrix, to obtain a quantized large language model. The application makes the quantized weights as close as possible to the original weight distribution, thereby realizing high-precision ternarization without gradient training.
Owner:SHANGHAI JIAOTONG UNIV

Method and device for detecting video memory competition of GPU (Graphics Processing Unit) end based on CPU end

The invention discloses a method and a device for detecting video memory competition of a GPU (Graphics Processing Unit) end based on a CPU (Central Processing Unit) end. The method comprises the following steps: when a GPU application program runs, implanting a callback function at an API (Application Program Interface) entrance of the GPU application program so as to dynamically capture context information corresponding to GPU calling initiated by the GPU application program each time; according to the context information, a CPU simulation execution environment equivalent to parallel semantics of the GPU end is constructed at the CPU end; in the environment, a TSAN is started, and concurrent access behaviors of a plurality of CPU threads to the same mapping memory address are monitored; and when the monitoring result shows that the TSAN detects that the behavior has data competition, reversely mapping competition information associated with the competition event to context information, and completing video memory competition detection of the GPU end. According to the method and the device, the technical problem that in a GPU parallel computing scene in the related technology, when multiple kernel functions concurrently access the same video memory address through different streams to cause data competition, the competition cannot be effectively positioned and diagnosed, and a program is unstable is solved.
Owner:SHENZHEN XIAOMA YIXING TECH CO LTD

Application lifecycle callback function calling method, apparatus, device and terminal

ActiveCN121501378BMemory footprintCallback
The application discloses a kind of application life cycle callback function calling method, device, equipment and terminal, comprising: in the case where the life cycle trigger event of target application is monitored in embedded operating system, the callback function calling identification corresponding to life cycle trigger event is determined;Based on the callback function mark in the callback function table of the application registry of target application, the callback function index corresponding to callback function calling identification is obtained from callback function table;Based on callback function index, the callback function corresponding to life cycle trigger event is called, based on this, by setting callback function table in application registry, and based on the callback function mark in callback function table, callback function index is determined, to realize the callback of corresponding callback function, without recording the address of callback function in memory, solve the problem of memory occupation in callback function calling process, solve the problem that resource shortage can be caused when calling callback function in resource limited device.
Owner:BEIJING TONGFANG MICROELECTRONICS

Interface code generation and maintenance method and device, equipment and medium

The invention discloses an interface code generation and maintenance method and device, equipment and a medium, and relates to the field of software codes, and the interface code generation and maintenance method comprises the steps that after environment verification and resource loading are completed, legality verification is conducted on all attribute configuration JSON files, and after verification succeeds, text content of the attribute configuration JSON files is read; extracting a target field of a root node of the attribute configuration JSON file according to the text information, obtaining attribute information based on the target field, and generating a target interface code based on the attribute information and the template file; creating a callback management container for the target attribute needing to be notified, and generating a public interface corresponding to the target attribute, so as to add or remove a callback function in the callback management container of the target attribute through the public interface; and when the target attribute is changed, traversing and executing the callback function in the callback management container at the public interface according to the target sequence so as to complete the attribute change notification. Therefore, the code can be automatically generated, and the maintenance cost is reduced.
Owner:HANGZHOU MAITANG TECH CO LTD