An information processing method and apparatus

By transmitting information between kernel mode and user mode, the proxy service module mounts the target storage disk, solving the problem of cumbersome cloud drive operations and realizing a simpler file editing process.

CN115509456BActive Publication Date: 2026-02-27LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211266093.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-17
Publication Date
2026-02-27
Estimated Expiration
2042-10-17

AI Technical Summary

Technical Problem

When using cloud storage, you have to download the file first, then edit it locally, and then upload it after you're done, which is a cumbersome process.

Method used

By enabling information transmission between the kernel mode and user mode of the electronic device, the proxy service module determines the target storage medium based on the target application and mounts the target storage disk in the kernel mode. The user mode transmits operation information to the kernel mode, the kernel mode proxy driver module transmits the operation information to the user mode proxy service module, and the target interface in the proxy service module passes the operation information to the target storage medium.

Benefits of technology

This eliminates the need for users to manually download files from storage media, simplifying the operation. Users only need to operate on the target storage disk within the electronic device system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115509456B_ABST
    Figure CN115509456B_ABST
Patent Text Reader

Abstract

The application provides an information processing method and device, which are applied to an electronic device. A system of the electronic device includes a kernel state and a user state. A proxy service module in the user state determines a target storage medium based on a target application program. The target storage medium is a storage medium outside the electronic device corresponding to the target application program. The proxy service module mounts a target storage disk in the kernel state based on the target storage medium. The user state transmits operation information received based on the target application program to the kernel state. The operation information is generated based on file operation in the target storage disk by an operation body. A proxy drive module in the kernel state transmits the operation information to the proxy service module in the user state. A target interface in the proxy service module transmits the operation information to the target storage medium, so that the target storage medium responds to the operation information. The target interface is an interface set corresponding to the target application program.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of information technology, and more particularly, to an information processing method and device. BACKGROUND

[0002] In many scenarios, user private data storage function needs to be provided, for example, data using a network disk.

[0003] However, there is a disadvantage in using a network disk. When a file needs to be edited, the file needs to be downloaded first, then edited locally, and then uploaded after editing is completed, which is relatively cumbersome. SUMMARY

[0004] Therefore, the present application provides an information processing method as follows:

[0005] An information processing method, applied to an electronic device, the system of the electronic device comprising a kernel state and a user state, the method comprising:

[0006] The proxy service module in the user state determines a target storage medium based on a target application program, the target storage medium being a storage medium outside the electronic device corresponding to the target application program;

[0007] The proxy service module mounts a target storage disk in the kernel state based on the target storage medium;

[0008] The user state transmits operation information received based on the target application program to the kernel state, the operation information being generated based on file operation in the target storage disk;

[0009] The proxy drive module in the kernel state transmits the operation information to the proxy service module in the user state;

[0010] The target interface in the proxy service module transmits the operation information to the target storage medium, so that the target storage medium responds to the operation information, the target interface being an interface set corresponding to the target application program.

[0011] Optionally, before the proxy service module in the user state determines the target storage medium based on the target application program, the method comprises:

[0012] The user state receives login success information of a target user logging in the target application program, the login success information containing a target identifier corresponding to the target user;

[0013] A mounting event is generated based on the login success information and sent to the proxy service module.

[0014] Optionally, in the method, the operation information includes obtaining a target interface of the target storage disk, and the target interface in the proxy service module delivers the operation information to the target storage medium, so that the target storage medium responds to the operation information.

[0015] The target interface in the proxy service module delivers the operation information carrying the target identifier to the target storage medium, so that the target storage medium determines a target database based on the target identifier, and generates a target interface of the target storage medium based on the target database responding to the operation information, the target interface corresponding to the target user.

[0016] The target interface in the proxy service module receives the target interface.

[0017] The target interface is displayed.

[0018] Optionally, in the method, the proxy service module mounts the target storage disk in the kernel mode based on the target storage medium.

[0019] After the proxy service module obtains the mounting information of the target storage medium, the proxy service module controls to load a proxy driver module in the kernel mode, and creates an associated first unit and a second unit in the proxy driver module, the first unit representing a logical disk space, and the second unit representing a file system.

[0020] The kernel mode sends a kernel mode disk mounting request packet to the first unit and a kernel mode file system mounting request packet to the second unit, and the kernel mode disk mounting request packet and the kernel mode file system mounting request packet include setting information corresponding to the target storage disk, so that the first unit and the second unit establish a corresponding relationship with the target storage medium, and the target storage disk is mounted in the kernel mode of the electronic device system.

[0021] Optionally, in the method, the target interface in the proxy service module delivers the operation information to the target storage medium, so that the target storage medium responds to the operation information.

[0022] The kernel mode converts the operation information delivered by the user mode into a kernel mode operation request packet, and the proxy driver module determines a type of the kernel mode operation request packet.

[0023] If the type of the kernel mode operation request packet is a first type, the proxy driver module converts the kernel mode operation request packet into a target operation request packet and sends the target operation request packet to the proxy service module, so that the target interface in the proxy service module delivers the target operation request packet to the target storage medium.

[0024] Optionally, in the method, the proxy service module mounts the target storage disk in the kernel mode based on the target storage medium.

[0025] If the kernel-mode operation request packet is of the second type, the proxy driver module responds to the kernel-mode operation request packet and operates the target storage disk.

[0026] Optionally, in the above method, the proxy driver module converts the kernel-mode operation request packet into a target operation request packet and sends it to the proxy service module, including:

[0027] The proxy driver module places the kernel-mode operation request packet into the target queue;

[0028] After receiving the acquisition instruction sent by the proxy service module, the proxy driver module retrieves the kernel-mode operation request packet from the target queue based on the acquisition instruction, and maps the first process space corresponding to the kernel-mode operation request packet to the second process space of the first unit. The first process space is the process space of the target application.

[0029] The proxy driver module converts the kernel-mode operation request packet into a target operation request packet and sends the target operation request packet to the proxy service module;

[0030] Accordingly, the target interface in the proxy service module transmits the operation information to the target storage medium, so that after the target storage medium responds to the operation information, it further includes:

[0031] The operation feedback packet received by the target interface in the proxy service module is fed back to the proxy driver module, and the operation feedback packet corresponds to the target operation request packet.

[0032] The proxy driver module determines the corresponding kernel-mode operation request packet based on the operation feedback packet, and cancels the mapping between the first process space corresponding to the kernel-mode operation request packet and the second process space of the first unit.

[0033] Optionally, in the above method, the proxy driver module converts the kernel-mode operation request packet into a target operation request packet, including:

[0034] The proxy driver module extracts the target data from the kernel-mode operation request packet;

[0035] The proxy driver module generates the target index value;

[0036] The proxy driver module stores the target index value and the kernel-mode operation request packet in correspondence; it then combines the target index value and the target data into a target operation request packet.

[0037] Accordingly, the proxy driver module determines the corresponding kernel-mode operation request packet based on the operation feedback packet, including:

[0038] The agent driving module analyzes the operation feedback package to obtain a target index value; determines a corresponding kernel state operation request package based on the target index value; and deletes the target index value and the kernel state operation request package.

[0039] Optionally, the method described above further includes:

[0040] The user state obtains unloading information of the unloading target storage disk, and transmits the unloading information to the agent driving module.

[0041] The agent driving module unloads the target storage disk mounted in the kernel state.

[0042] An information processing device applied to an electronic device, a system of the electronic device including a kernel state and a user state, the device including:

[0043] An agent service module arranged in the user state, configured to determine a target storage medium based on a target application program, the target storage medium being a storage medium outside the electronic device corresponding to the target application program; and the agent service module mounts a target storage disk in the kernel state based on the target storage medium.

[0044] An agent driving module arranged in the kernel state, configured to transmit operation information received based on a target application program to the kernel state in the user state, and transmit the operation information to the agent service module of the user state; the operation information being generated based on file operation in the target storage disk by an operation body.

[0045] The agent service module is further configured to transmit the operation information to the target storage medium based on a target interface, so that the target storage medium responds to the operation information, the target interface being an interface arranged corresponding to the target application program.

[0046] Via the technical solution, the application provides an information processing method, which is applied to an electronic device. The system of the electronic device includes a kernel state and a user state. A target storage medium is determined by a proxy service module in the user state based on a target application program. The target storage medium is a storage medium outside the electronic device corresponding to the target application program. The proxy service module mounts a target storage disk in the kernel state based on the target storage medium. The user state transmits operation information received based on the target application program to the kernel state. The operation information is generated based on file operation of an operation body in the target storage disk. A proxy drive module in the kernel state transmits the operation information to the proxy service module in the user state. A target interface in the proxy service module transmits the operation information to the target storage medium, so that the target storage medium responds to the operation information. The target interface is an interface corresponding to the target application program. In the scheme, the target storage medium is an external storage medium different from the storage medium inside the electronic device. The target storage medium can be mounted in the electronic device in the form of a target storage disk. From the perspective of a user, the target storage medium is a storage disk in the electronic device system. The user only needs to operate the target storage disk in the electronic device system, without manually downloading files in the storage medium. Compared with the operation of using a network disk in the prior art, the operation required by the user in the scheme is simpler. BRIEF DESCRIPTION OF DRAWINGS

[0047] In order to more clearly illustrate the technical solutions of the embodiments of the application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of the provided drawings.

[0048] Figure 1 is a flowchart of an information processing method embodiment 1 provided by the application;

[0049] Figure 2 is a display window schematic diagram of an electronic device in the information processing method embodiment 1 provided by the application;

[0050] Figure 3 is a schematic diagram of an electronic device system in the information processing method embodiment 1 provided by the application;

[0051] Figure 4 is a flowchart of an information processing method embodiment 2 provided by the application;

[0052] Figure 5 is a flowchart of an information processing method embodiment 3 provided by the application;

[0053] Figure 6 is a flowchart of an information processing method embodiment 4 provided by the present application;

[0054] Figure 7 is a schematic diagram of an electronic device system in the information processing method embodiment 4 provided by the present application;

[0055] Figure 8 is a flowchart of an information processing method embodiment 5 provided by the present application;

[0056] Figure 9 is a flowchart of an information processing method embodiment 6 provided by the present application;

[0057] Figure 10 is a schematic diagram of an electronic device system in the information processing method embodiment 6 provided by the present application;

[0058] Figure 11 is a flowchart of an information processing method embodiment 7 provided by the present application;

[0059] Figure 12 is a structural schematic diagram of an information processing device embodiment provided by the present application. DETAILED DESCRIPTION

[0060] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor are within the scope of protection of the present application.

[0061] As shown in Figure 1 is a flowchart of an information processing method embodiment 1 provided by the present application, which is applied to an electronic device. The system of the electronic device includes a kernel state and a user state. The method includes the following steps:

[0062] Step S101: determining a target storage medium based on a target application program by a proxy service module in the user state;

[0063] The target storage medium is a storage medium outside the electronic device corresponding to the target application program.

[0064] The system of the electronic device can adopt a windows system.

[0065] It should be noted that the kernel state and the user state are two running levels of an operating system. The user state is a non-privileged execution state, which is open to users, and a non-development technician can modify, add, etc. the content in the user state. The kernel state is prohibited from performing potentially dangerous operations in this state, such as writing system configuration files, killing other user processes, restarting the system, etc. A development technician has the right to modify the content of the kernel state, and a non-development technician generally does not have the right. Therefore, after the operating system of the electronic device is shipped, the non-development technician generally cannot modify the content of the kernel state.

[0066] The user state is provided with a proxy service module, which is mainly responsible for information transmission between the target storage medium on the user state side and the proxy driver of the kernel state.

[0067] The target application program is an application program running in the user state, and the target application program corresponds to the target storage medium, which provides files for the target application program.

[0068] As an example, the target storage medium can be a network disk or the like.

[0069] After the target application program and the target storage medium corresponding thereto establish an association relationship, the proxy service module determines the target storage medium corresponding to the target application program based on the target application program.

[0070] The association relationship establishing manner at least includes login, access or other ways capable of reading files in the target storage medium.

[0071] Step S102: The proxy service module mounts a target storage disk in the kernel state based on the target storage medium.

[0072] The proxy service module mounts a target storage disk in the kernel state of the system based on the target storage medium, and realizes simulation of the target storage medium as a local system disk.

[0073] The mounting process will be described in detail in subsequent embodiments, which will not be described in detail in this embodiment.

[0074] After the target storage disk is mounted in the kernel state, the system is restarted, and in the system restart process, the Windows program manager (explorer.exe) reads the kernel state, determines the storage disk contained therein, and sends the reading result to the display module, so that the display module displays the storage disk icon contained therein.

[0075] In the display area of the electronic device, all storage disks in the kernel state are displayed, including the storage disks local to the electronic device system and the target storage disk.

[0076] As Figure 2 The display window of the electronic device is shown in the figure, which contains devices and drives in the electronic device system and network locations (One Drive(Z)), wherein the devices and drives are three, which are local disk (C), local disk (D) and local disk (E), wherein local disk (C) and local disk (D) are real local disks, and local disk (E) is a target storage disk. Among them, 557GB is available in local disk (C), a total of 722GB; 130GB is available in local disk (D), a total of 231GB; 103GB is available in local disk (E), a total of 953GB; 4.99GB is available in One Drive(Z), a total of 5GB.

[0077] In the implementation, the display mode of the target storage disk and the storage disk local to the electronic device system can be the same or different, which can be set according to the actual situation, and the display mode of the two is not limited in the application.

[0078] Step S103: the user state transmits the operation information received based on the target application program to the kernel state;

[0079] Among them, the operation information is generated based on the operation of the operation body on the file in the target storage disk.

[0080] Among them, the target storage disk is displayed in the electronic device, the operation body operates the file in the target storage disk, and the target application program generates operation information based on the operation.

[0081] Among them, the operation includes opening the target page, safe access and other operations on the target storage disk, read-write operation on the file in the target storage disk, file lock and the like, of course, the operation is not limited to this, in the implementation, it can also be other operations on the file in the target storage disk.

[0082] Among them, the target application program on the user state side receives the operation information, and the user state transmits the operation information to the kernel state side.

[0083] Among them, the kernel state is provided with an IO (input output) manager, which receives the information transmitted by the application program on the user state side and sends the information to the kernel state.

[0084] Step S104: the proxy drive module in the kernel state transmits the operation information to the proxy service module in the user state.

[0085] The proxy drive module in the kernel state receives the operation information transmitted by the user state, which is equivalent to the target storage disk in the kernel state receiving the operation information.

[0086] Since the target storage medium is connected to the system of the electronic device through the target interface on the user state side, the proxy drive module transmits the operation information to the proxy service module on the user state side, so as to transmit the operation information to the user state side based on the target storage disk, thereby realizing information transmission of the target storage medium connected to the user state side.

[0087] The process of transmitting the operation information will be described in detail in subsequent embodiments, which will not be described in detail in this embodiment.

[0088] As shown in Figure 3 The electronic device system includes a user state 301 and a kernel state 302, wherein the user state 301 includes a target application program 3011 and a proxy service module 3012, and the proxy service module can perform data transmission with the target storage medium; wherein the kernel state 302 includes a proxy drive module 3021. The target application program in the user state and the proxy drive module in the kernel state can transmit information, and the proxy service module and the proxy drive module can also transmit information, wherein the transmitted information can be in the form of a request packet.

[0089] Step S105: The target interface in the proxy service module transmits the operation information to the target storage medium, so that the target storage medium responds to the operation information.

[0090] The target interface is an interface corresponding to the target application program.

[0091] The proxy service module is provided with at least one interface, which is an interface corresponding to the target application program, and the interface can transmit information with the target storage medium corresponding to the target application program.

[0092] The different interfaces can adopt different information transmission rules, and the application programs adopting the same information transmission rule can adopt the same interface.

[0093] It should be noted that the agent service module and the agent driver module are pre-set in the system of the electronic device. The agent service module provided with the interface is set in the user state, and an ordinary technician can add, modify, etc. the interface in the agent service module to realize adding the target storage medium matched therewith. The agent driver module set in the kernel state is developed by a development technician, which does not need to be modified in the present application, only the function thereof is utilized, and the content changed in the agent driver is exposed to the user state through the interface of the agent service module, and the functions of mounting the target storage disk in the agent driver module and subsequently receiving and transmitting the operation information are pre-set, without the need to modify the agent driver module, realizing one development and multiple delivery.

[0094] It should be noted that the agent driver module is used as a file system agent to interact with the system kernel, mainly to generate a mountable disk and intercept the operation request of the user state to the file system and the disk, and then put the intercepted operation request into a queue. The agent service module is mainly responsible for extracting the operation request from the kernel state and operating the file in the target storage medium according to the operation request, and returns after the operation is completed.

[0095] In summary, the information processing method provided in the embodiment determines the target storage medium based on the target application program in the user state, and the target storage medium is a storage medium outside the electronic device corresponding to the target application program. The agent service module mounts the target storage disk in the kernel state based on the target storage medium. The user state transmits the operation information received based on the target application program to the kernel state, and the operation information is generated based on the operation on the file in the target storage disk. The agent driver module in the kernel state transmits the operation information to the agent service module in the user state. The target interface in the agent service module transmits the operation information to the target storage medium, so that the target storage medium responds to the operation information. The target interface is an interface corresponding to the target application program. In the embodiment, the target storage medium is an external storage medium different from the storage medium inside the electronic device, which can be mounted in the electronic device in the form of a target storage disk. From the user's perspective, the target storage medium is a storage disk in the electronic device system, and the user only needs to operate the target storage disk in the electronic device system, without the need for the user to manually download the file in the storage medium. Compared with the operation of using the network disk in the prior art, the operation required by the user in the present scheme is simpler.

[0096] As shown in Figure 4 the flow chart of the information processing method embodiment 2 provided in the present application, the method comprises the following steps:

[0097] Step S401: a user state receives login success information of a target user logging into a target application program;

[0098] The login success message contains a target identifier corresponding to the target user.

[0099] The target user logs into the target application program as a legal user of the target application program. After login success, the target application program establishes an information transmission path with the corresponding target storage medium, and the user state side can also determine the corresponding target storage medium.

[0100] The login success information can be fed back to the target application program by the target storage medium, or can be generated based on the feedback information fed back by the target storage medium.

[0101] After the target application program obtains / generates the login success information, the user state obtains the login success message.

[0102] The login success message contains a target identifier, which can be an account of the target user or other unique identifier, and the target identifier can be used to distinguish the target user from other users.

[0103] After the target user logs into the target application program, the target storage medium corresponding to the target application program can determine the database corresponding to the target user based on the unique identifier such as the account of the target user, so as to respond to the operation information based on the corresponding database in the future.

[0104] Step S402: generate a mounting event based on the login success information and send it to the proxy service module;

[0105] The user state generates a mounting event based on the login success information, and notifies the proxy service module to mount the storage disk based on the mounting event.

[0106] In the subsequent step S405, the user state intercepts the operation information in the target application program, and realizes receiving the operation information based on the target application program.

[0107] Step S403: the proxy service module in the user state determines the target storage medium based on the target application program;

[0108] Step S404: the proxy service module mounts the target storage disk in the kernel state based on the target storage medium;

[0109] Step S405: the user state transmits the operation information received based on the target application program to the kernel state;

[0110] Step S406: The proxy driver module in kernel mode transmits the operation information to the proxy service module in user mode;

[0111] Step S407: The target interface in the proxy service module transmits the operation information to the target storage medium, so that the target storage medium responds to the operation information.

[0112] Steps S403-407 are the same as steps S101-105 in Example 1, and will not be described again in this example.

[0113] In summary, the information processing method provided in this embodiment further includes: receiving login success information of a target user logging into a target application in user mode, wherein the login success message contains a target identifier, and the target identifier corresponds to the target user; generating a mount event based on the login success information and sending it to the proxy service module. In this embodiment, a mount event is generated and sent to the proxy service module based on the login success information of the target user successfully logging into the target application, thereby triggering the proxy service module to mount the target storage medium. The successful login of the user into the target application can automatically mount the target storage medium, similar to the operation process of the user logging into the target application to access the target storage medium for file operations. However, by mounting the target storage disk in the system kernel mode of the electronic device, the target storage medium is simulated as a local system disk. The user can directly operate on the target storage disk without manual mounting, simplifying the user operation and improving the user experience.

[0114] like Figure 5 The diagram shown is a flowchart of an embodiment 3 of an information processing method provided in this application. The method includes the following steps:

[0115] Step S501: The user mode receives the login success message of the target user logging into the target application;

[0116] Step S502: Generate a mounting event based on the login success information and send it to the proxy service module;

[0117] Step S503: The proxy service module in user space determines the target storage medium based on the target application;

[0118] Step S504: The proxy service module mounts the target storage disk in kernel mode based on the target storage medium;

[0119] Step S505: The user space transmits the operation information received by the target application to the kernel space;

[0120] Step S506: The proxy driver module in kernel mode transmits the operation information to the proxy service module in user mode;

[0121] Wherein, steps S501-506 are consistent with steps S401-406 in embodiment 2, which will not be repeated here.

[0122] Step S507: the target interface in the agent service module delivers the operation information carrying the target identifier to the target storage medium, so that the target storage medium determines the target database based on the target identifier, and generates the target interface of the target storage medium based on the target database in response to the operation information;

[0123] Wherein, the target interface corresponds to the target user.

[0124] Wherein, the operation information includes obtaining the target interface of the target storage disk.

[0125] Specifically, after the target storage disk is mounted in the kernel state, the operator clicks the icon of the target storage disk in the interface displayed on the display screen to open the target storage disk. The operation of clicking the icon of the target storage disk is an operation intended to obtain the target interface of the target storage disk.

[0126] Wherein, the operation information is the operation information received by the target application program in the user state.

[0127] Wherein, after receiving the operation information, the target application program adds a target identifier to the operation information, and delivers the operation information with the target identifier to the agent drive module in the kernel state. The agent drive module sends the operation information to the agent service module, and the target interface in the agent service module delivers the operation information to the target storage medium.

[0128] Wherein, after receiving the operation information containing the target identifier, the target storage medium determines the target database corresponding to the target user based on the target identifier, and generates the target interface of the target storage medium based on the target database in response to the operation information.

[0129] Wherein, in the target storage medium, different users correspond to different databases.

[0130] Wherein, the target interface is generated based on the target database corresponding to the target user in response to the operation information. For different users, the interface of the opened target storage disk is different.

[0131] For example, the target storage medium is a network disk. After user A logs in, the interface of the target storage medium opened by the user A is the file of the user A. After user B logs in, the interface of the target storage medium opened by the user B is the file of the user B.

[0132] Step S508: the target interface in the agent service module receives the target interface;

[0133] The target interface in the agent service module in the user state receives the target interface fed back by the target storage medium.

[0134] Step S509: The target interface is displayed.

[0135] The display module of the electronic device displays the target interface.

[0136] The target interface of the target storage disk is obtained, and the target interface is displayed on the display screen, so that the user can see the target interface.

[0137] In summary, the information processing method provided in the embodiment includes operation information including a target interface of a target storage disk, and the method includes: a target interface in the agent service module delivers operation information carrying a target identifier to a target storage medium, so that the target storage medium determines a target database based on the target identifier, and generates a target interface of the target storage medium based on the target database in response to the operation information, the target interface corresponding to the target user; the target interface in the agent service module receives the target interface; and the target interface is displayed. In the embodiment, when the target user logs in the target application program, different users correspond to different target identifiers, and correspondingly, the operation information obtained based on the target application program carries a target identifier, the operation information is delivered to the target storage medium through the target interface of the agent module, the target storage medium generates a target interface of the target storage medium based on the target database corresponding to the target identifier in response to the operation information, and the target interface is fed back to the electronic device, and the electronic device displays the target interface. For different users of the same target application program, the target interfaces corresponding to different users are different, and the interface contents seen by different users are different.

[0138] As shown in Figure 6 FIG. 4 is a flowchart of an embodiment 4 of the information processing method provided in the application, and the method includes the following steps:

[0139] Step S601: An agent service module in the user state determines a target storage medium based on a target application program;

[0140] The step S601 is the same as the step S101 in the embodiment 1, and will not be described herein.

[0141] Step S602: After the agent service module obtains mounting information of the mounted target storage medium, the agent service module controls loading of an agent driver module in the kernel state, and creates an associated first unit and a second unit in the agent driver module;

[0142] The first unit represents logical disk space, and the second unit represents file system.

[0143] The mounting information can be that after the target application successfully logs in, the user space transmits the login success information to the proxy service module, thereby triggering the proxy service module to mount the target storage disk.

[0144] Specifically, the successful login information can be notified to the agent service module via an event.

[0145] In this case, the mounting information can also be generated by other functional modules in the user space after the proxy service module has determined the target storage medium, and then sent to the proxy service module.

[0146] After obtaining the mount information, the proxy service module loads the kernel-mode proxy driver module to initialize it.

[0147] Specifically, a first unit and a second unit are created in the agent driver module. The first unit contains a pointer that points to the corresponding second unit to establish the association between the two.

[0148] In specific implementation, if multiple target storage disks are mounted in the kernel mode of an electronic device, each target storage disk is configured with a first unit and a second unit, and the first unit and the second unit in the same target storage disk are associated.

[0149] In practice, a management unit is also created to facilitate the management of the first and second units.

[0150] After obtaining the mount information, the proxy service module loads the kernel-mode proxy driver module. In the initialization function of the proxy driver module, a management unit is created. The proxy service sends the mount information to the management unit, and the management unit creates the associated first and second units based on the mount information.

[0151] Step S603: The kernel state sends a kernel state disk mount request packet to the first unit and a kernel state file system mount request packet to the second unit, so that the first unit and the second unit establish a correspondence with the target storage medium;

[0152] The first unit and the second unit establish a correspondence with the target storage medium, thereby enabling the target storage disk to be mounted in the kernel mode of the electronic device system.

[0153] The kernel-mode disk mount request packet and the kernel-mode file system mount request packet contain setting information corresponding to the target storage disk.

[0154] After the first unit and the second unit are created, the kernel in kernel mode (such as NOTS in Windows system) generates the setting information corresponding to the target storage disk based on the relevant information of the target storage medium, and sends the setting information to the first unit and the second unit in the form of a request packet.

[0155] Specifically, the request packet uses an IRP (I / O request packet), which is a data packet format used for transmitting information in kernel mode.

[0156] Specifically, a kernel-mode disk mount request packet is sent to the first unit, and a kernel-mode file system mount request packet is sent to the second unit, so that the two units can be configured based on the received request packets. The first unit configures the disk space to be mounted, and the second unit configures the file system to be mounted. Moreover, the pointer contained in the first unit points to the second unit, so that the mounted disk space is associated with the file system, thus realizing the correspondence between the first unit, the second unit and the target storage medium.

[0157] In practice, after the first and second units are configured and the correspondence between the first and second units and the target storage medium is established, the target storage disk mounted on the electronic device is not yet displayed in the display area. The system needs to be restarted so that during the system restart process, the Windows program manager (explorer.exe) can read the kernel state, determine the storage disk contained therein, and send the reading result to the display module so that the display module can display the icon of the storage disk contained therein.

[0158] Users can see the target storage disk on the display screen and operate on it in the same way as other storage disks in the system.

[0159] like Figure 7 The diagram shows a schematic of an electronic device system, which includes a user mode 701 and a kernel mode 702. The user mode 701 contains a target application 7011 and a proxy service module 7012. The proxy service module has an interface that connects to the target storage medium. The kernel mode contains a proxy driver module 7021, which includes a management unit, a first unit, and a second unit. The management unit, the first unit, and the second unit can all receive operation information sent by the target application in the user mode.

[0160] Step S604: The user space transmits the operation information received by the target application to the kernel space;

[0161] Step S605: The proxy driver module in kernel mode transmits the operation information to the proxy service module in user mode;

[0162] Step S606: The target interface in the proxy service module transmits the operation information to the target storage medium, so that the target storage medium responds to the operation information.

[0163] Steps S604-606 are the same as steps S103-105 in Example 1, and will not be described again in this example.

[0164] In summary, in the information processing method provided in this embodiment, after the proxy service module obtains the mounting information of the target storage medium, it loads the proxy driver module in kernel mode. In the proxy driver module, an associated first unit and a second unit are created. The first unit represents a logical disk space, and the second unit represents a file system. The kernel mode sends a kernel-mode disk mount request packet to the first unit and a kernel-mode file system mount request packet to the second unit, so that the two units can mount based on the received request packets, thereby realizing the correspondence between the two units and the target storage medium and realizing the process of mounting the target storage disk in kernel mode.

[0165] like Figure 8 The flowchart shown is a 5th embodiment of an information processing method provided in this application. The method includes the following steps:

[0166] Step S801: The proxy service module in user space determines the target storage medium based on the target application;

[0167] Step S802: The proxy service module mounts the target storage disk in kernel mode based on the target storage medium;

[0168] Step S803: The user space transmits the operation information received by the target application to the kernel space;

[0169] Step S804: The proxy driver module in kernel mode transmits the operation information to the proxy service module in user mode;

[0170] Steps S801-804 are the same as steps S101-104 in Example 1, and will not be described again in this example.

[0171] Step S805: The kernel mode converts the operation information transmitted from the user mode into a kernel mode operation request packet, and the proxy driver module determines the type of the kernel mode operation request packet;

[0172] The user-mode side uses a first-format data packet for information transmission, while the kernel-mode side uses a second-format data packet for information transmission. The first and second formats are different.

[0173] Therefore, when the data packet is transmitted between the kernel mode and the user mode, in order to ensure that the data can be accurately and effectively transmitted between the kernel mode and the user mode, the format of the data transmitted by the kernel mode and the user mode needs to be converted.

[0174] Specifically, the kernel mode side adopts a kernel mode request packet, such as an IRP.

[0175] The user mode side adopts a request packet.

[0176] The format conversion step is performed by the kernel mode side.

[0177] Specifically, the operation information is converted into a kernel mode operation request packet (an IRP related to the operation) by an IO manager set by the kernel mode side.

[0178] The proxy driver module analyzes the kernel mode operation request packet and determines its type.

[0179] The type of the kernel mode operation request packet is divided according to whether the target storage medium needs to be interacted with in response, if the target storage medium needs to be interacted with, the type is a first type, and if the target storage medium does not need to be interacted with, the type is a second type.

[0180] Specifically, if the operation target corresponding to the operation information is a file in the target storage disk, the name of the target storage disk is modified, and the like, the target storage medium needs to be interacted with, the kernel mode operation request packet corresponding to the operation information is of the first type.

[0181] Specifically, if the operation target corresponding to the operation information is the target storage disk as a whole, such as unloading the target storage disk, and the like, the kernel mode operation request packet corresponding to the operation information is of the second type.

[0182] Step S806: If the type of the kernel mode operation request packet is the first type, the proxy driver module converts the kernel mode operation request packet into a target operation request packet and sends the target operation request packet to a proxy service module;

[0183] If the type of the kernel mode operation request packet is the first type, and the purpose is to operate the file in the target storage medium, the proxy driver module converts the kernel mode operation request packet into a target operation request packet.

[0184] The proxy driver module sends the target operation request packet to the proxy service module, the proxy service module can identify the target operation request packet, and transmits the target operation request packet to the target storage medium through a target interface, so that the target storage medium responds to the target operation request packet, and the target storage medium responds to the operation information.

[0185] This also includes:

[0186] If the kernel-mode operation request packet is of the second type, the proxy driver module responds to the kernel-mode operation request packet and operates the target storage disk.

[0187] If the kernel-mode operation request packet is of the second type, only the agent driver module needs to respond to the kernel-mode operation request packet and operate the target storage disk.

[0188] For example, if the operation message is to delete the target storage disk, the agent driver module will respond by deleting the target storage disk.

[0189] Step S807: The target interface in the proxy service module transmits the target operation request packet to the target storage medium, so that the target storage medium responds to the target operation request packet.

[0190] Step S807 is the same as step S105 in Example 1, and will not be described again in this example.

[0191] In summary, the information processing method provided in this embodiment includes: the kernel mode converting operation information transmitted from the user mode into a kernel mode operation request packet; the proxy driver module determining the type of the kernel mode operation request packet; if the type of the kernel mode operation request packet is a first type, the proxy driver module converting the kernel mode operation request packet into a target operation request packet and sending it to the proxy service module, so that the target interface in the proxy service module transmits the target operation request packet to the target storage medium. In this embodiment, different data packets of different formats are used for information transmission between the user mode and the kernel mode. Moreover, after receiving the operation information transmitted from the user mode, the kernel mode converts the operation information into a kernel mode operation request packet, determines the type of the kernel mode operation request packet, and responds in different ways based on different types.

[0192] like Figure 9 The flowchart shown is a sample of embodiment 6 of an information processing method provided in this application. The method includes the following steps:

[0193] Step S901: The proxy service module in user space determines the target storage medium based on the target application;

[0194] Step S902: The proxy service module mounts the target storage disk in kernel mode based on the target storage medium;

[0195] Step S903: The user space transmits the operation information received by the target application to the kernel space;

[0196] Step S904: the proxy driver module in the kernel mode transmits the operation information to the proxy service module in the user mode;

[0197] Step S905: the kernel mode converts the operation information transmitted by the user mode into a kernel mode operation request package, and the proxy driver module determines the type of the kernel mode operation request package;

[0198] Steps S901-904 are the same as steps S801-805 in Embodiment 5, and will not be described herein.

[0199] Step S906: if the type of the kernel mode operation request package is the first type, the proxy driver module puts the kernel mode operation request package into a target queue;

[0200] The type of the kernel mode operation request package is determined to be the first type, which needs to interact with the target storage medium.

[0201] The proxy driver module is provided with the target queue, and the target queue has one or more kernel mode operation request packages of the proxy driver module to be transmitted to the target storage medium.

[0202] Each time the type of the kernel mode operation request package is determined to be the first type, the kernel mode operation request package is put into the target queue in the time sequence of generation.

[0203] Step S907: after the proxy driver module receives the acquisition instruction sent by the proxy service module, the proxy driver module takes the kernel mode operation request package in the target queue based on the acquisition instruction, and maps the first process space corresponding to the kernel mode operation request package to the second process space of the first unit.

[0204] The first process space is the process space of the target application program.

[0205] The proxy service module is provided with a thread pool, and the thread pool is provided with a plurality of threads.

[0206] After any thread in the thread pool ends, an acquisition instruction is sent to the proxy driver module.

[0207] After the proxy driver module receives the acquisition instruction, the proxy driver module takes a kernel mode operation request package in the target queue, and the target queue no longer has the taken kernel mode operation request package.

[0208] The proxy driver module analyzes the kernel mode operation request package, determines the first process space corresponding to the kernel mode operation request package, maps the first process space to the second process space of the first unit, and realizes the mapping relationship between the target application program and the target storage disk.

[0209] Wherein, the in-kernel operation request package in the queue is in the order of first-in first-out, and the target driver module takes the in-kernel operation request package in the target queue in order until the in-kernel operation request package put in step S906 is taken.

[0210] Wherein, other initialization operations related to the in-kernel operation request package are also performed, such as memory occupation, process space region locking, and other mapping related processes for the second process space.

[0211] In a specific implementation, the in-kernel operation request package stored in the queue is processed in order until all in-kernel operation request packages are processed.

[0212] Step S908: The agent driver module converts the in-kernel operation request package into a target operation request package and sends the target operation request package to the agent service module.

[0213] Wherein, after the agent driver module takes the in-kernel operation request package, it converts the in-kernel operation request package into a target operation request package that can be processed in the user state, and sends the target operation request package to the agent service module, so that the agent service module can perform subsequent transmission processes based on the received target operation request package.

[0214] Wherein, the in-kernel operation request package is analyzed to obtain the related content of the operation information in addition to the related content required by the kernel state, and the related content of the operation information is packaged into a target operation request package.

[0215] Specifically, the agent driver module converts the in-kernel operation request package into a target operation request package, including:

[0216] Step S9081: The agent driver module extracts target data in the in-kernel operation request package.

[0217] Wherein, in the in-kernel operation request package, in addition to the related content required by the kernel state, the related content of the operation information is target data.

[0218] Specifically, the agent driver module analyzes the in-kernel operation request package and extracts the target data therein.

[0219] For example, the in-kernel operation request package contains 100 pieces of information, 80 pieces of which are the content required by the kernel state, and 20 pieces of which are the content of the operation information. The target data in the in-kernel operation request package is the 20 pieces of information.

[0220] Step S9082: The agent driver module generates a target index value.

[0221] The proxy drive module randomly generates a set of characters as the target index value, which can include numbers and letters, etc.

[0222] The number of characters contained in the target index value can be preset, and the number of characters contained in the target index value is not limited in this application.

[0223] Step S9083: The proxy drive module stores the target index value and the kernel state operation request package;

[0224] The proxy drive module associates the target index value with the kernel state operation request package, and generates a Map table with the target index value and the kernel state operation request package. The Map table has multiple elements, and one element is composed of an index value and a kernel state operation request package.

[0225] In the Map table, the corresponding kernel state operation request package can be quickly found based on an index value.

[0226] Step S9084: The target index value and the target data are combined to form a target operation request package;

[0227] The target index value and the target data are combined to form a target operation request package. After the target operation request package is sent to the proxy service module, the proxy service module transmits the target operation request to the target storage medium, and the target storage medium can carry the target index value in the operation feedback package.

[0228] Step S909: The target interface in the proxy service module transmits the target operation request package to the target storage medium, so that the target storage medium responds to the target operation request package;

[0229] Step S909 is the same as step S807 in embodiment 5, and this embodiment will not be described.

[0230] Step S910: The target interface in the proxy service module receives the operation feedback package and feeds it back to the proxy drive module;

[0231] The operation feedback package corresponds to the target operation request package.

[0232] The operation feedback package is fed back to the electronic device by the target storage medium in response to the target operation request package, and has information corresponding to the target operation request package.

[0233] The target storage medium generates an operation feedback package in response to the target operation request package, and feeds it back to the electronic device.

[0234] Specifically, the target storage medium feeds back the operation feedback package to the electronic device based on a target interface in the agent service module.

[0235] The agent service module delivers the received operation feedback package to the agent driver module.

[0236] The agent driver module determines a corresponding kernel-mode operation request package based on the operation feedback package, and cancels mapping between a first process space corresponding to the kernel-mode operation request package and a second process space of the first unit.

[0237] The agent driver module analyzes the operation feedback table to determine the corresponding kernel-mode operation request package.

[0238] The agent driver module deletes related content in the agent driver module because the kernel-mode operation request package has been processed.

[0239] Specifically, the agent driver module cancels mapping related to the kernel-mode operation request package, specifically, mapping between the first process space corresponding to the kernel-mode operation request package and the second process space of the first unit.

[0240] The agent driver module also performs de-initialization operations related to the kernel-mode operation request package, such as releasing occupied content in the second process space, releasing a lock of a process space region, and the like.

[0241] The agent driver module determines the corresponding kernel-mode operation request package based on the operation feedback package, including:

[0242] The agent driver module analyzes the operation feedback package to obtain a target index value.

[0243] The operation feedback package contains consistent content, such as a target index value, in the corresponding target operation request package.

[0244] The agent driver module analyzes the target index value obtained from the operation feedback package after receiving the operation feedback package.

[0245] In a specific implementation, the operation feedback package transmitted by the agent service module to the agent driver module meets the format requirements of the user mode. After receiving the operation feedback package, the agent driver module first performs format conversion on the operation feedback package to convert it into a feedback package meeting the format requirements of the kernel mode, and then analyzes the content in the feedback package to obtain a target index value.

[0246] The agent driver module determines the corresponding kernel-mode operation request package based on the target index value.

[0247] The target index value is searched in a plurality of index values stored in the agent driving module and the kernel state operation request packet combination based on the target index value, and the combination corresponding to the target index value is determined, and the kernel state operation request packet in the combination is determined.

[0248] The Map table is set in the agent driving module, and the target element containing the target index value is searched in the Map based on the target index value, and the kernel state operation request packet in the target element is the kernel state operation request packet corresponding to the target index value.

[0249] Step S9113: deleting the target index value and the kernel state operation request packet.

[0250] The target index value and the kernel state operation request packet are deleted after the kernel state operation request packet corresponding to the target index value is searched, and the processing process of the operation information is completed.

[0251] As shown in Figure 10 The schematic diagram of the electronic device system is shown, which includes user state 1001 and kernel state 1002. The user state 1001 includes target application program 10011 and agent service module 10012, the agent service module is provided with interface and thread pool, the interface is connected with target storage medium, and the thread pool has a plurality of threads. The kernel state includes agent driving module 10021, which is provided with management unit, first unit, second unit, queue and table. The management unit, the first unit and the second unit can receive the operation information sent by the target application program on the user state side, convert the operation information into kernel state operation request packet, determine that the kernel state operation request packet is of the first type, put the kernel state operation request packet into the queue and the table, the table stores the kernel state operation request packet and the target index value, read a kernel state operation request packet from the queue when there is an idle thread in the thread pool, convert the kernel state operation request packet into target operation request packet provided to the thread by the agent driving module, process the target operation request packet by the thread, send the target operation request packet to the target storage medium through the interface, feed back the operation feedback packet after the target storage medium processes the target operation request packet, feed back to the agent driving module through the interface and the thread in the thread pool, delete the corresponding kernel state operation request packet and the target index value in the table of the agent driving module, and complete the response to the operation information.

[0252] To sum up, the information processing method provided in the embodiment comprises: the agent driver module puts the kernel mode operation request package into the target queue; after the agent driver module receives the acquisition instruction sent by the agent service module, the agent driver module takes the kernel mode operation request package in the target queue based on the acquisition instruction, maps the first process space corresponding to the kernel mode operation request package to the second process space of the first unit, and the first process space is the process space of the target application program; the agent driver module converts the kernel mode operation request package into a target operation request package, and sends the target operation request package to the agent service module; the operation feedback package received by the target interface in the agent service module is fed back to the agent driver module, and the operation feedback package corresponds to the target operation request package; and the agent driver module determines the corresponding kernel mode operation request package based on the operation feedback package, and cancels the mapping between the first process space corresponding to the kernel mode operation request package and the second process space of the first unit. In the embodiment, through the target queue arranged in the agent driver module, and in cooperation with the threads in the thread pool in the agent service module, the response of each operation information in the application is realized, and the response of the operation on the target storage medium is realized.

[0253] As shown in Figure 11 the flowchart of embodiment 7 of the information processing method provided in the application, the method comprises the following steps:

[0254] Step S1101: the agent service module in the user mode determines the target storage medium based on the target application program;

[0255] Step S1102: the agent service module mounts the target storage disk in the kernel mode based on the target storage medium;

[0256] Step S1103: the user mode transmits the operation information received based on the target application program to the kernel mode;

[0257] Step S1104: the agent driver module in the kernel mode transmits the operation information to the agent service module in the user mode;

[0258] Step S1105: the target interface in the agent service module transmits the operation information to the target storage medium, so that the target storage medium responds to the operation information;

[0259] Among them, steps S1101-1105 are consistent with steps S101-105 in embodiment 1, and will not be described in detail in this embodiment.

[0260] Step S1106: the user mode obtains unloading information for unloading the target storage disk, and transmits the unloading information to the agent driver module;

[0261] The uninstallation information can be either the target application's logout information or information generated based on the logout information.

[0262] In this process, the operator presses the logout button on the target application's interface, the target application generates logout information, and based on this logout information, generates uninstallation information.

[0263] Step S1107: The agent driver module unloads the target storage disk mounted in the kernel state.

[0264] Upon receiving the uninstallation information, the agent driver module uninstalls the corresponding application from the kernel space to the target storage disk.

[0265] Specifically, unloading the target storage disk mounted in kernel mode involves deleting the first and second units created for the target storage medium in the agent driver module.

[0266] In practice, multiple target storage disks can be mounted in the kernel for different applications. After receiving the unloading information, the target storage disk corresponding to the target application is unloaded based on the target application corresponding to the unloading information.

[0267] Specifically, the uninstallation information may carry the identifier of the target application. The I / O manager in kernel mode determines the corresponding target storage disk based on the identifier of the target application, converts the uninstallation information into the corresponding kernel mode operation request packet, and sends it to the corresponding agent driver module.

[0268] The agent driver module, after receiving the uninstallation information, needs to wait until all kernel-mode operation request packets in the queue and Map table have been processed before executing the uninstallation process.

[0269] In summary, the information processing method provided in this embodiment, based on the received uninstallation information, allows the agent driver module to uninstall the corresponding target storage disk mounted in the kernel mode. This enables the uninstallation of the target storage disk based on operations on the target application, ensuring flexible mounting and unmounting of the target storage disk.

[0270] Corresponding to the above-described embodiment of an information processing method provided in this application, this application also provides an embodiment of an apparatus for applying the information processing method.

[0271] like Figure 12 The diagram shown is a structural schematic of an embodiment of an information processing device provided in this application. The device is applied to an electronic device. The system of the electronic device includes kernel mode and user mode. The device includes the following structure: a proxy service module 1201 and a proxy driver module 1202.

[0272] The agent service module 1201 is arranged in the user mode, and is configured to determine a target storage medium based on a target application program, the target storage medium being a storage medium outside an electronic device corresponding to the target application program; and the agent service module is configured to mount a target storage disk in the kernel mode based on the target storage medium.

[0273] The agent driver module 1202 is arranged in the kernel mode, and is configured to, after the operation information received based on the target application program is transmitted to the kernel mode in the user mode, transmit the operation information to the agent service module in the user mode; the operation information is generated based on file operation on the target storage disk by an operation body.

[0274] The agent service module is further configured to transmit the operation information to the target storage medium based on a target interface, so that the target storage medium responds to the operation information, the target interface being an interface arranged corresponding to the target application program.

[0275] Optionally, the user mode receives login success information of a target user logging in a target application program, and the login success information includes a target identifier corresponding to the target user.

[0276] The agent service module is further configured to generate a mounting event based on the login success information and send the mounting event to the agent service module.

[0277] Optionally, the operation information includes a target interface of the target storage disk, and the target interface in the agent service module transmits the operation information carrying the target identifier to the target storage medium, so that the target storage medium determines a target database based on the target identifier, and generates the target interface of the target storage medium based on the target database responding to the operation information, the target interface corresponding to the target user.

[0278] The target interface in the agent service module receives the target interface.

[0279] The target interface is displayed.

[0280] Optionally, after the agent service module obtains mounting information of the mounted target storage medium, the agent service module controls the agent driver module to be loaded in the kernel mode, and creates an associated first unit and a second unit in the agent driver module, the first unit representing a logical disk space, and the second unit representing a file system.

[0281] The kernel state sends a kernel state disk mounting request packet to the first unit and a kernel state file system mounting request packet to the second unit, and the kernel state disk mounting request packet and the kernel state file system mounting request packet contain setting information corresponding to the target storage disk, so that the first unit and the second unit establish a corresponding relationship with the target storage medium, and the target storage disk is mounted in the kernel state of the electronic device system.

[0282] Optionally, the kernel state converts the operation information passed by the user state into a kernel state operation request packet, and the proxy driver module determines the type of the kernel state operation request packet;

[0283] If the type of the kernel state operation request packet is the first type, the proxy driver module converts the kernel state operation request packet into a target operation request packet and sends the target operation request packet to the proxy service module, so that a target interface in the proxy service module passes the target operation request packet to the target storage medium.

[0284] Optionally, the proxy driver module further comprises:

[0285] If the kernel state operation request packet is the second type, the proxy driver module operates the target storage disk in response to the kernel state operation request packet.

[0286] Optionally, the proxy driver module puts the kernel state operation request packet into a target queue.

[0287] After the proxy driver module receives an acquisition instruction sent by the proxy service module, the proxy driver module takes out the kernel state operation request packet in the target queue based on the acquisition instruction, and maps a first process space corresponding to the kernel state operation request packet to a second process space of the first unit, the first process space being a process space of the target application program.

[0288] The proxy driver module converts the kernel state operation request packet into a target operation request packet and sends the target operation request packet to the proxy service module.

[0289] Correspondingly, the target interface in the proxy service module passes the operation information to the target storage medium, so that the target storage medium further comprises, after responding to the operation information:

[0290] The proxy driver module receives an operation feedback packet from the target interface in the proxy service module, the operation feedback packet corresponding to the target operation request packet.

[0291] The proxy driver module determines a corresponding kernel state operation request packet based on the operation feedback packet, and cancels the mapping between a first process space corresponding to the kernel state operation request packet and a second process space of the first unit.

[0292] Optionally, the agent driver module extracts the target data in the kernel mode operation request package;

[0293] The agent driver module generates a target index value;

[0294] The agent driver module stores the target index value and the target data in the kernel mode operation request package; and the agent driver module combines the target index value and the target data to form a target operation request package;

[0295] Correspondingly, the agent driver module determines the corresponding kernel mode operation request package based on the operation feedback package, and the method comprises the following steps:

[0296] The agent driver module analyzes the operation feedback package to obtain a target index value; the agent driver module determines the corresponding kernel mode operation request package based on the target index value; and the agent driver module deletes the target index value and the kernel mode operation request package.

[0297] Optionally, the user obtains unloading information of an unloading target storage disk, and transmits the unloading information to the agent driver module;

[0298] The agent driver module unloads the target storage disk mounted in the kernel mode.

[0299] It should be noted that the functions of various structures in the information processing device provided in the embodiment are explained with reference to the explanation in the method embodiment, and the embodiment will not be described herein.

[0300] In summary, the information processing device provided in the embodiment is applied to an electronic device, the system of the electronic device includes a kernel state and a user state, the device includes: a proxy service module arranged in the user state, configured to determine a target storage medium based on a target application program, the target storage medium being a storage medium outside the electronic device corresponding to the target application program; the proxy service module is configured to mount a target storage disk in the kernel state based on the target storage medium; a proxy driver module arranged in the kernel state, configured to transmit operation information received based on the target application program to the kernel state, and then transmit the operation information to the proxy service module in the user state; the operation information is generated based on file operation on the target storage disk by an operation body; the proxy service module is further configured to transmit the operation information to the target storage medium based on a target interface, so that the target storage medium responds to the operation information, and the target interface is an interface arranged corresponding to the target application program. In the embodiment, the target storage medium is an external storage medium different from the storage medium inside the electronic device, and the target storage medium can be mounted in the electronic device in the form of a target storage disk. From the perspective of the user, the target storage medium is a storage disk in the electronic device system, and the user only needs to operate the target storage disk in the electronic device system, without the need for the user to manually download files in the storage medium. Compared with the operation of using a network disk in the prior art, the operation required by the user in the present solution is simpler.

[0301] Corresponding to the information processing method provided in the embodiment of the present application, the present application also provides an electronic device and a readable storage medium corresponding to the information processing method.

[0302] The electronic device includes a memory and a processor.

[0303] The memory stores a processing program.

[0304] The processor is configured to load and execute the processing program stored in the memory to implement each step of the information processing method according to any one of the preceding embodiments.

[0305] The electronic device implements the information processing method according to the preceding embodiments of the information processing method.

[0306] The readable storage medium stores a computer program, and the computer program is called and executed by the processor to implement each step of the information processing method according to any one of the preceding embodiments.

[0307] The computer program stored in the readable storage medium implements the information processing method according to the preceding embodiments of the information processing method.

[0308] The various embodiments described in this specification are implemented in a progressive manner, each embodiment focusing on the differences from other embodiments, and the same or similar parts between embodiments can be mutually referred to. For the apparatuses provided by the embodiments, since they correspond to the methods provided by the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the methods.

[0309] The above description of provided embodiments enables one of ordinary skill in the art to make and use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein can be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An information processing method, the method is applied to an electronic device, a system of the electronic device comprises a kernel state and a user state, and the method comprises: a proxy service module in the user state determines a target storage medium based on a target application program, the target storage medium being a storage medium outside the electronic device corresponding to the target application program; the proxy service module mounts a target storage disk in the kernel state based on the target storage medium; the user state transmits operation information received based on the target application program to the kernel state, the operation information being generated based on an operation on a file in the target storage disk; a proxy driver module in the kernel state transmits the operation information to the proxy service module in the user state; a target interface in the proxy service module delivers the operation information to the target storage medium, so that the target storage medium responds to the operation information, the target interface being an interface set corresponding to the target application program.

2. The method of claim 1, before the proxy service module in the user state determines the target storage medium based on the target application program, comprising: the user state receives login success information of a target user logging in the target application program, the login success information containing a target identifier corresponding to the target user; a mounting event is generated based on the login success information and sent to the proxy service module.

3. The method of claim 2, the operation information comprising obtaining a target interface of the target storage disk, the target interface in the proxy service module delivering the operation information to the target storage medium, so that the target storage medium responds to the operation information, comprising: the target interface in the proxy service module delivering the operation information carrying the target identifier to the target storage medium, so that the target storage medium determines a target database based on the target identifier, and generates a target interface of the target storage medium based on the target database responding to the operation information, the target interface corresponding to the target user; the target interface in the proxy service module receiving the target interface; displaying the target interface.

4. The method of claim 1, the proxy service module mounting the target storage disk in the kernel state based on the target storage medium, comprising: after the proxy service module obtains mounting information of the target storage medium, the proxy service module controls loading a proxy driver module in the kernel state, and creates an associated first unit and a second unit in the proxy driver module, the first unit representing a logical disk space, and the second unit representing a file system; the kernel state sends a kernel state disk mounting request packet to the first unit and a kernel state file system mounting request packet to the second unit, the kernel state disk mounting request packet and the kernel state file system mounting request packet containing setting information corresponding to the target storage disk, so that the first unit and the second unit establish a corresponding relationship with the target storage medium, and the target storage disk is mounted in the kernel state of the electronic device system.

5. The method of claim 4, wherein the target interface in the proxy service module passes the operation information to the target storage medium to cause the target storage medium to respond to the operation information, comprising: converting, by a kernel mode, the operation information passed from the user mode into a kernel mode operation request package, wherein the proxy driver module determines a type of the kernel mode operation request package; and converting, by the proxy driver module, the kernel mode operation request package into a target operation request package to send to the proxy service module, to cause the target interface in the proxy service module to pass the target operation request package to the target storage medium, if the type of the kernel mode operation request package is a first type.

6. The method of claim 5, further comprising: operating, by the proxy driver module, the target storage disk in response to the kernel mode operation request package, if the kernel mode operation request package is a second type.

7. The method of claim 5, wherein the proxy driver module converts the kernel mode operation request package into the target operation request package to send to the proxy service module, comprising: placing, by the proxy driver module, the kernel mode operation request package into a target queue; taking, by the proxy driver module, the kernel mode operation request package from the target queue based on a fetch instruction received from the proxy service module, wherein the proxy driver module maps a first process space corresponding to the kernel mode operation request package to a second process space of the first unit, and the first process space is a process space of the target application; converting, by the proxy driver module, the kernel mode operation request package into the target operation request package; and sending, by the proxy driver module, the target operation request package to the proxy service module.

8. The method of claim 7, wherein the proxy driver module converts the kernel mode operation request package into the target operation request package, comprising: extracting, by the proxy driver module, target data from the kernel mode operation request package; generating, by the proxy driver module, a target index value; storing, by the proxy driver module, the target index value corresponding to the kernel mode operation request package; and grouping, by the proxy driver module, the target index value and the target data into the target operation request package.

9. The method of claim 1, further comprising: ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ A user state obtains unloading information of a target storage disk, and delivers the unloading information to a proxy drive module; The proxy drive module unloads the target storage disk mounted in the kernel state. 10.An information processing apparatus applied to an electronic device, a system of the electronic device comprising a kernel state and a user state, the apparatus comprising: a proxy service module arranged in the user state, configured to determine a target storage medium based on a target application program, the target storage medium being a storage medium outside the electronic device corresponding to the target application program; the proxy service module mounts a target storage disk in the kernel state based on the target storage medium; a proxy drive module arranged in the kernel state, configured to, after transmitting operation information received based on the target application program to the kernel state in the user state, transmit the operation information to the proxy service module in the user state; the operation information is generated based on an operation on a file in the target storage disk; the proxy service module is further configured to deliver the operation information to the target storage medium based on a target interface, so that the target storage medium responds to the operation information, the target interface being an interface arranged corresponding to the target application program.

Citation Information

Patent Citations

  • Method and apparatus for realizing access control

    CN102202062A

  • Data processing method and device, electronic equipment and storage medium

    CN113031852A