CN103324442B - A kind of method processing I/O request and electronic equipment - Google Patents
A kind of method processing I/O request and electronic equipment Download PDFInfo
- Publication number
- CN103324442B CN103324442B CN201210080636.2A CN201210080636A CN103324442B CN 103324442 B CN103324442 B CN 103324442B CN 201210080636 A CN201210080636 A CN 201210080636A CN 103324442 B CN103324442 B CN 103324442B
- Authority
- CN
- China
- Prior art keywords
- request
- package informatin
- judged result
- asks
- bag
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 claims abstract description 78
- 230000000875 corresponding Effects 0.000 claims abstract description 39
- 238000001914 filtration Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 230000006399 behavior Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000006011 modification reaction Methods 0.000 description 3
- 241001269238 Data Species 0.000 description 1
- 206010022114 Injury Diseases 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical Effects 0.000 description 1
Abstract
The invention discloses a kind of method processing I/O request, be used for protecting disk.Described method includes: obtains the I/O request that an application program generates, and obtains an I/O request package informatin based on described I/O request;When first drives and obtains described I/O request package informatin, it is judged that whether the operation of described I/O request correspondence is the first operation;When the operation showing described I/O request correspondence is described first operation, described I/O request package informatin is carried out the first process;When the second driving in described electronic equipment obtains described I/O request package informatin, it is judged that whether described I/O request package informatin is that the I/O after described first processes asks package informatin;When showing that described I/O request package informatin is that the I/O after described first processes asks package informatin, drive by described second and perform the operation that described I/O request is corresponding.The invention also discloses the electronic equipment for realizing described method.
Description
Technical field
The present invention relates to the communications field, particularly to a kind of method processing I/O request and electronic equipment.
Background technology
The storage device protection software redirected based on I/O (input and output) may be pierced, and such as applies
Layer/driving layer can be by directly transmitting SCSI (Small Computer System Interface, small-sized calculating
Machine system interface) storage device protection software is walked around in instruction, or driving layer can also be by obtaining DISK
The driven object of (disk), directly invokes Dispatch (scheduling) function etc. of driven object, it is also possible to
Walk around storage device protection software.These methods all may cause the storage device protection redirected based on IO
Software failure, may cause damage to disk.
Summary of the invention
The embodiment of the present invention provides a kind of method processing I/O request and electronic equipment, is used for protecting disk.
A kind of method processing input and output I/O request, applies in an electronic equipment, and described method includes:
Obtain the I/O request that an application program generates, and obtain an I/O request bag based on described I/O request
Information;
When the first driving in described electronic equipment obtains described I/O request package informatin, it is judged that described I/O
Whether the operation of request correspondence is the first operation, it is thus achieved that the first judged result;
When the operation that described first judged result shows described I/O request correspondence is described first operation, right
Described I/O request package informatin carries out the first process;
When the second driving in described electronic equipment obtains described I/O request package informatin, it is judged that described I/O
Whether request package informatin is that the I/O after described first processes asks package informatin, it is thus achieved that the second judged result;
When described second judged result shows that described I/O request package informatin is after described first processes
When I/O asks package informatin, drive by described second and perform the operation that described I/O request is corresponding.
It is also preferred that the left described first operation is write operation.
It is also preferred that the left described first is driven to filtration drive, described second is driven to class drives or port driving.
It is also preferred that the left the step that described I/O request package informatin carries out the first process includes: please by described I/O
Ask package informatin to recorded in a list, or the value of the first element in described I/O request bag is set to first
Particular value.
It is also preferred that the left judge whether described I/O request package informatin is the I/O request after described first processes
Package informatin, it is thus achieved that the step of the second judged result includes: judge whether described I/O request package informatin is present in
In described list, it is thus achieved that the second judged result;Or judge that described I/O asks described first element in bag
Whether value is described first particular value, it is thus achieved that the second judged result.
It is also preferred that the left when judging to determine whether described I/O request package informatin is present in described list, described
Second judged result shows that described I/O request package informatin is the I/O request bag letter after described first processes
Breath;Maybe when judging to determine that the value that described I/O asks described first element in bag is described first particular value,
Described second judged result shows that described I/O request package informatin is the I/O request after described first processes
Package informatin.
It is also preferred that the left further comprise the steps of: when described second judged result shows that described I/O request package informatin is not
I/O after described first processes asks package informatin, abandons described I/O and asks package informatin, or refusal
Perform the operation corresponding to described I/O request.
A kind of electronic equipment, including:
Acquisition module, for obtaining the I/O request that an application program generates, and obtains based on described I/O request
Obtain an I/O and ask package informatin;
First drives, when the first driving in described electronic equipment obtains described I/O request package informatin,
Judge that described I/O asks whether corresponding operation is the first operation, it is thus achieved that the first judged result;
Processing module, is described for showing the operation of described I/O request correspondence when described first judged result
During the first operation, described I/O request package informatin is carried out the first process;
Second drives, when the second driving in described electronic equipment obtains described I/O request package informatin,
Judge whether described I/O request package informatin is that the I/O after described first processes asks package informatin, it is thus achieved that
Second judged result;
When described second judged result, operation module, for showing that described I/O request package informatin is through described
When I/O after first process asks package informatin, drive by described second and perform described I/O request correspondence
Operation.
It is also preferred that the left described first operation is write operation.
It is also preferred that the left described first is driven to filtration drive, described second is driven to class drives or port driving.
It is also preferred that the left described processing module is specifically for recorded in a list by described I/O request package informatin,
Or the value of the first element in described I/O request bag is set to the first particular value.
It is also preferred that the left described second drive specifically for:
Judge whether described I/O request package informatin is present in described list, it is thus achieved that the second judged result;
Or judge that described I/O asks whether the value of described first element in bag is described first particular value, obtains
Obtain the second judged result.
It is also preferred that the left when described second drives judgement to determine whether described I/O request package informatin is present in described row
Time in table, described second judged result shows that described I/O request package informatin is after described first processes
I/O asks package informatin;Or when described second drives judgement to determine described first yuan in described I/O request bag
The value of element is when being described first particular value, described second judged result show described I/O request package informatin be through
Cross the I/O after described first process and ask package informatin.
It is also preferred that the left described operation module is additionally operable to when described second judged result shows described I/O request bag letter
Breath is not that the I/O after described first processes asks package informatin, abandons described I/O and asks package informatin,
Or refusal performs the operation corresponding to described I/O request.
The method processing I/O request in the embodiment of the present invention is to obtain the I/O request that an application program generates,
And obtain I/O request bag (IRP) information based on described I/O request;In described electronic equipment first
When driving the described I/O of acquisition to ask package informatin, it is judged that whether the operation of described I/O request correspondence is write operation,
Obtain the first judged result;When described first judged result shows that the operation of described I/O request correspondence is for writing behaviour
When making, described I/O request package informatin is carried out the first process;The second driving in described electronic equipment obtains
When obtaining described I/O request package informatin, it is judged that whether described I/O request package informatin is to process through described first
After I/O ask package informatin, it is thus achieved that the second judged result;When described second judged result shows described I/O
Request package informatin is that the I/O after described first processes asks package informatin, drives by described second and holds
The operation that row described I/O request is corresponding.By whether judging described I/O request package informatin at the second driving
It is that the I/O after described first processes asks package informatin, carries out corresponding operating further according to judged result, as
The most described I/O request package informatin is not that the I/O after described first processes asks package informatin, then can be true
Fixed described I/O request package informatin does not protect software through storage device, then can abandon this I/O request bag
Information or refusal perform the operation corresponding to this I/O request, thus effectively protect disk.
Accompanying drawing explanation
Fig. 1 is the main method flow chart processing I/O request in the embodiment of the present invention;
Fig. 2 is the primary structure figure of electronic equipment in the embodiment of the present invention.
Detailed description of the invention
The method processing I/O request in the embodiment of the present invention is to obtain the I/O request that an application program generates,
And obtain I/O request bag (IRP) information based on described I/O request;In described electronic equipment first
When driving the described I/O of acquisition to ask package informatin, it is judged that whether the operation of described I/O request correspondence is write operation,
Obtain the first judged result;When described first judged result shows that the operation of described I/O request correspondence is for writing behaviour
When making, described I/O request package informatin is carried out the first process;The second driving in described electronic equipment obtains
When obtaining described I/O request package informatin, it is judged that whether described I/O request package informatin is to process through described first
After I/O ask package informatin, it is thus achieved that the second judged result;When described second judged result shows described I/O
Request package informatin is that the I/O after described first processes asks package informatin, drives by described second and holds
The operation that row described I/O request is corresponding.By whether judging described I/O request package informatin at the second driving
It is that the I/O after described first processes asks package informatin, carries out corresponding operating further according to judged result, as
The most described I/O request package informatin is not that the I/O after described first processes asks package informatin, then can be true
Fixed described I/O request package informatin does not protect software through storage device, then can abandon this I/O request bag
Information or refusal perform the operation corresponding to this I/O request, thus effectively protect disk.
Seeing Fig. 1, the main method flow process processing I/O request in the embodiment of the present invention is as follows, described method
Can apply in an electronic equipment:
Step 101: obtain the I/O request that an application program generates, and ask acquisition one based on described I/O
I/O asks package informatin.
When upper level applications communicates with bsp driver, application program can send I/O request, by phase
The I/O request answered is converted into corresponding IRP (I/O Request Packet, input output request bag) request
Bag, different IRP request bags can be dispatched to different sending in routine according to type and process.
The request bag of I/O described in the embodiment of the present invention can be IRP request bag.Obtain at described electronic equipment
When obtaining the I/O request that an application program sends, this I/O request is converted to corresponding IRP request bag,
I.e. obtain an I/O based on described I/O request and ask package informatin.
Step 102: when the first driving in described electronic equipment obtains described I/O request package informatin, sentence
Whether the operation of disconnected described I/O request correspondence is the first operation, it is thus achieved that the first judged result.
In the embodiment of the present invention, described first operation can be write operation, because read operation is to read from disk
Fetching data, regardless of whether protect software through storage device, it is not the most very big to the threat of disk, and writes
Operation is intended in disk write data, if without the filtration of storage device protection software, and may be to
Disk writes invalid data, bigger to disk harm.
Described in the embodiment of the present invention, the first driving can be filtration drive, and storage device protection software leads to just
Cross filtration drive information is filtered, it is possible to effectively stop harmful information to pass through.Described first driving obtains
When obtaining described I/O request package informatin, it can be determined that whether the operation of described I/O request correspondence is the first operation,
The most whether is write operation, it is thus achieved that the first judged result, this first judged result is used for representing that described I/O asks
Corresponding operation is described first operation or is not described first operation.
Step 103: when described first judged result shows that the operation of described I/O request correspondence is described first
During operation, described I/O request package informatin is carried out the first process.
When the operation that described first judged result shows described I/O request correspondence is described first operation, can
So that described I/O request package informatin is carried out the first process, such as, described in the embodiment of the present invention, first processes
Mode can be by described I/O request package informatin recorded in a list, maybe described I/O can be asked
The value of the first element in bag is set to the first particular value, or can also be other processing modes, and described
One process be intended merely to by described I/O request package informatin make a sign, with at described second driving to reception
To I/O information detect, therefore, as long as meeting the processing mode of inventive concept all the present invention's
Within protection domain.
Step 104: when the second driving in described electronic equipment obtains described I/O request package informatin, sentence
Whether disconnected described I/O request package informatin is that the I/O after described first processes asks package informatin, it is thus achieved that the
Two judged results.
Second driving described in the embodiment of the present invention can be that class drives or port drives, and the most described I/O please
Asking whether package informatin drives through described first, it all can drive through described second, therefore can be described
Arranging test point at second driving, described second drives when receiving described I/O and asking package informatin, permissible
Judge whether described I/O request package informatin is that the I/O after described first processes asks package informatin, this
In bright embodiment, if the described first mode processed is for recorded a list by described I/O request package informatin
In, the most described second drives whether the described I/O request package informatin needing judgement to receive is positioned at described list
In, described second judged result is used for showing that described I/O request packet bit or does not has in described list
It is positioned in described list;If the described first mode processed is by the first element in described I/O request bag
Value be set to the first particular value, the most described second drives in the described I/O request bag needing to judge to receive
The value of described first element whether be described first particular value, described second judged result is used for showing described
The value of described first element in I/O request bag is described first particular value or is not described first particular value.
Wherein, described I/O request bag can include multiple element, the first process described in the embodiment of the present invention
Mode can be that the value of wherein certain element is set to described first particular value, can be by certain element described
It is referred to as described first element.
Step 105: when described second judged result shows that described I/O request package informatin is through described first
When I/O after process asks package informatin, drive by described second and perform the operation that described I/O request is corresponding.
When described second judged result shows that described I/O request package informatin is after described first processes
When I/O asks package informatin, i.e. if the described first mode processed is by described I/O request package informatin note
Recording in a list, described second judged result shows that described I/O request packet bit is in described list;
If the described first mode processed is that the value of the first element in described I/O request bag is set to the first spy
Definite value, described second judged result shows that the value of described first element in described I/O request bag is described the
One particular value, then can be asked by the I/O that described second driving continues executing with corresponding to described I/O request bag
Ask corresponding operation, such as, data to be written can be write disk, etc..
When described second judged result shows that described I/O request package informatin is not after described first processes
When I/O asks package informatin, i.e. if the described first mode processed is by described I/O request package informatin note
Recording in a list, described second judged result shows that described I/O request package informatin is not at described list
In;If the described first mode processed is that the value of the first element in described I/O request bag is set to the
One particular value, described second judged result shows that the value of described first element in described I/O request bag is not
Described first particular value, the most described second driving can abandon described I/O request bag, or can refuse to hold
The operation corresponding to I/O request corresponding to row described I/O request bag, in order to protect disk not by possible
Injury.
The method processing I/O request in the present invention is introduced below by way of several specific embodiments.
Embodiment one:
First obtain the I/O request that an application program generates, described I/O request is converted to an I/O request
Bag, it is thus achieved that this I/O asks package informatin.
In electronic equipment described first drives and receives this I/O request bag, it is thus achieved that this I/O asks package informatin,
Judge whether the operation corresponding to this I/O request is write operation, it is thus achieved that described first judged result, the present invention
First judged result described in embodiment shows that the operation corresponding to this I/O request is write operation.
Described I/O request bag is carried out described first process, the first side processed described in the embodiment of the present invention
Formula is for recorded described I/O request package informatin in a list.
After recording, described I/O request bag continues transmission.In described electronic equipment described second drives
Receive an I/O request bag, it is judged that whether this I/O request bag is that the I/O after described first processes please
Seek bag, the embodiment of the present invention be and judge whether described I/O request package informatin is present in described list,
Second judged result described in the embodiment of the present invention shows that described I/O request bag is present in described list.
Determine that described I/O request bag have passed through storage device protection software according to described second judged result, be
Safety, described second drives the operation that can continue executing with corresponding to described I/O request.
Embodiment two:
First obtain the I/O request that an application program generates, described I/O request is converted to an I/O request
Bag, it is thus achieved that this I/O asks package informatin.
In electronic equipment described first drives and receives this I/O request bag, it is thus achieved that this I/O asks package informatin,
Judge whether the operation corresponding to this I/O request is write operation, it is thus achieved that described first judged result, the present invention
First judged result described in embodiment shows that the operation corresponding to this I/O request is write operation.
Described I/O request bag is carried out described first process, the first side processed described in the embodiment of the present invention
Formula is that the value of the first element in described I/O request bag is set to the first particular value.
After recording, described I/O request bag continues transmission.In described electronic equipment described second drives
Receive an I/O request bag, it is judged that whether this I/O request bag is that the I/O after described first processes please
Seeking bag, whether the value being the first element judged in described I/O request bag in the embodiment of the present invention is described
First particular value, the second judged result described in the embodiment of the present invention shows described in described I/O request bag the
The value of one element is described first particular value.
Determine that described I/O request bag have passed through storage device protection software according to described second judged result, be
Safety, described second drives the operation that can continue executing with corresponding to described I/O request bag.
Embodiment three:
First obtain the I/O request that an application program generates, described I/O request is converted to an I/O request
Bag, it is thus achieved that this I/O asks package informatin.
In electronic equipment described first drives and receives this I/O request bag, it is thus achieved that this I/O asks package informatin,
Judge whether the operation corresponding to this I/O request is write operation, it is thus achieved that described first judged result, the present invention
First judged result described in embodiment shows that the operation corresponding to this I/O request is not write operation.The most permissible
Do not carry out subsequent processes.
Embodiment four:
First obtain the I/O request that an application program generates, described I/O request is converted to an I/O request
Bag, it is thus achieved that this I/O asks package informatin.
In electronic equipment described first drives and receives this I/O request bag, it is thus achieved that this I/O asks package informatin,
Judge whether the operation corresponding to this I/O request is write operation, it is thus achieved that described first judged result, the present invention
First judged result described in embodiment shows that the operation corresponding to this I/O request is write operation.
Described I/O request bag is carried out described first process, the first side processed described in the embodiment of the present invention
Formula is that the value of the first element in described I/O request bag is set to the first particular value.
After recording, described I/O request bag continues transmission.In described electronic equipment described second drives
Receive an I/O request bag, it is judged that whether this I/O request bag is that the I/O after described first processes please
Seeking bag, whether the value being the first element judged in described I/O request bag in the embodiment of the present invention is described
First particular value, the second judged result described in the embodiment of the present invention shows described in described I/O request bag the
The value of one element is not described first particular value.
Determine that described I/O request bag not have passed through storage device protection according to described second judged result soft
Part, potentially unsafe, described second driving can abandon described I/O request bag.
Embodiment five:
First obtain the I/O request that an application program generates, described I/O request is converted to an I/O request
Bag, it is thus achieved that this I/O asks package informatin.
In electronic equipment described first drives and receives this I/O request bag, it is thus achieved that this I/O asks package informatin,
Judge whether the operation corresponding to this I/O request is write operation, it is thus achieved that described first judged result, the present invention
First judged result described in embodiment shows that the operation corresponding to this I/O request is write operation.
Described I/O request bag is carried out described first process, the first side processed described in the embodiment of the present invention
Formula is for recorded described I/O request package informatin in a list.
After recording, described I/O request bag continues transmission.In described electronic equipment described second drives
Receive an I/O request bag, it is judged that whether this I/O request bag is that the I/O after described first processes please
Seek bag, the embodiment of the present invention be and judge whether described I/O request package informatin is present in described list,
Second judged result described in the embodiment of the present invention shows that described I/O request bag is not present in described list
In.
Determine that described I/O request bag does not protect software through storage device according to described second judged result,
May be safe, described second driving can be refused to perform the operation corresponding to described I/O request.
Seeing Fig. 2, the embodiment of the present invention also provides for a kind of electronic equipment, its can include acquisition module 201,
First driving 202, processing module the 203, second driving 204 and operation module 205.
The I/O request that acquisition module 201 generates for obtaining an application program, and ask based on described I/O
Obtain an I/O and ask package informatin.
First drives 202 to obtain described I/O for the first driving in described electronic equipment asks package informatin
Time, it is judged that whether the operation of described I/O request correspondence is the first operation, it is thus achieved that the first judged result.
Processing module 203 is institute for showing the operation of described I/O request correspondence when described first judged result
When stating the first operation, described I/O request package informatin is carried out the first process.
Second drives 204 to obtain described I/O for the second driving in described electronic equipment asks package informatin
Time, it is judged that whether described I/O request package informatin is that the I/O after described first processes asks package informatin,
Obtain the second judged result.
When described second judged result, operation module 205 is for showing that described I/O request package informatin is through institute
When stating the request package informatin of the I/O after the first process, drive by described second and perform described I/O request correspondence
Operation.
The method processing I/O request in the embodiment of the present invention is to obtain the I/O request that an application program generates,
And obtain I/O request bag (IRP) information based on described I/O request;In described electronic equipment first
When driving the described I/O of acquisition to ask package informatin, it is judged that whether the operation of described I/O request correspondence is write operation,
Obtain the first judged result;When described first judged result shows that the operation of described I/O request correspondence is for writing behaviour
When making, described I/O request package informatin is carried out the first process;The second driving in described electronic equipment obtains
When obtaining described I/O request package informatin, it is judged that whether described I/O request package informatin is to process through described first
After I/O ask package informatin, it is thus achieved that the second judged result;When described second judged result shows described I/O
Request package informatin is that the I/O after described first processes asks package informatin, drives by described second and holds
The operation that row described I/O request is corresponding.By whether judging described I/O request package informatin at the second driving
It is that the I/O after described first processes asks package informatin, carries out corresponding operating further according to judged result, as
The most described I/O request package informatin is not that the I/O after described first processes asks package informatin, then can be true
Fixed described I/O request package informatin does not protect software through storage device, then can abandon this I/O request bag
Information or refusal perform the operation corresponding to this I/O request, thus effectively protect disk.
Carry out the described first mode processed and can have multiple, can select as required, easy to operate.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot
The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more
Computer-usable storage medium containing computer usable program code (include but not limited to disk memory and
Optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present invention
The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and
/ or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding
The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating
The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one
The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set
In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory
Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart
The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes
Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices
Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one
The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention
Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and
Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.
Claims (14)
1. the method processing input and output I/O request, applies in an electronic equipment, and its feature exists
In, described method includes:
Obtain the I/O request that an application program generates, and obtain an I/O request bag based on described I/O request
Information;
When the first driving in described electronic equipment obtains described I/O request package informatin, it is judged that described I/O
Whether the operation of request correspondence is the first operation, it is thus achieved that the first judged result;
When the operation that described first judged result shows described I/O request correspondence is described first operation, right
Described I/O request package informatin carries out the first process;
When the second driving in described electronic equipment obtains described I/O request package informatin, it is judged that described I/O
Whether request package informatin is that the I/O after described first processes asks package informatin, it is thus achieved that the second judged result;
When described second judged result shows that described I/O request package informatin is after described first processes
When I/O asks package informatin, drive by described second and perform the operation that described I/O request is corresponding.
2. the method for claim 1, it is characterised in that described first operation is write operation.
3. the method for claim 1, it is characterised in that described first is driven to filtration drive,
Described second is driven to class drives or port driving.
4. the method for claim 1, it is characterised in that described I/O request package informatin is carried out
First step processed includes: be recorded in a list by described I/O request package informatin, or by described I/O
The value of the first element in request bag is set to the first particular value.
5. method as claimed in claim 4, it is characterised in that judge that described I/O request package informatin is
No is that the I/O after described first processes asks package informatin, it is thus achieved that the step of the second judged result includes:
Judge whether described I/O request package informatin is present in described list, it is thus achieved that the second judged result;Or judge
Whether the value of described first element in described I/O request bag is described first particular value, it is thus achieved that second judges
Result.
6. method as claimed in claim 5, it is characterised in that when judging to determine described I/O request bag
When whether information is present in described list, described second judged result shows that described I/O request package informatin is
I/O after described first processes asks package informatin;The maybe institute in judgement determines described I/O request bag
Stating the value of the first element when being described first particular value, described second judged result shows described I/O request bag
Information is that the I/O after described first processes asks package informatin.
7. the method for claim 1, it is characterised in that further comprise the steps of: when described second sentences
Disconnected result shows that described I/O request package informatin is not that the I/O after described first processes asks package informatin,
Abandon described I/O and ask package informatin, or refusal performs the operation corresponding to described I/O request.
8. an electronic equipment, it is characterised in that including:
Acquisition module, for obtaining the I/O request that an application program generates, and obtains based on described I/O request
Obtain an I/O and ask package informatin;
First drives, when the first driving in described electronic equipment obtains described I/O request package informatin,
Judge that described I/O asks whether corresponding operation is the first operation, it is thus achieved that the first judged result;
Processing module, is described for showing the operation of described I/O request correspondence when described first judged result
During the first operation, described I/O request package informatin is carried out the first process;
Second drives, when the second driving in described electronic equipment obtains described I/O request package informatin,
Judge whether described I/O request package informatin is that the I/O after described first processes asks package informatin, it is thus achieved that
Second judged result;
When described second judged result, operation module, for showing that described I/O request package informatin is through described
When I/O after first process asks package informatin, drive by described second and perform described I/O request correspondence
Operation.
9. electronic equipment as claimed in claim 8, it is characterised in that described first operation is write operation.
10. electronic equipment as claimed in claim 8, it is characterised in that described first is driven to filtration drives
Dynamic, described second is driven to class drives or port driving.
11. electronic equipments as claimed in claim 8, it is characterised in that described processing module specifically for
Described I/O request package informatin be recorded in a list, or by the first element in described I/O request bag
Value is set to the first particular value.
12. electronic equipments as claimed in claim 11, it is characterised in that described second drives concrete using
In:
Judge whether described I/O request package informatin is present in described list, it is thus achieved that the second judged result;
Or judge that described I/O asks whether the value of described first element in bag is described first particular value, obtains
Obtain the second judged result.
13. electronic equipments as claimed in claim 12, it is characterised in that when described second drives judgement
Determine that when whether described I/O request package informatin is present in described list, described second judged result shows institute
Stating I/O request package informatin is that the I/O after described first processes asks package informatin;Or when described second drives
Dynamic judgement determines when the value of described first element in described I/O request bag is described first particular value, described
Second judged result shows that described I/O request package informatin is the I/O request bag letter after described first processes
Breath.
14. electronic equipments as claimed in claim 8, it is characterised in that described operation module is additionally operable to work as
Described second judged result shows that described I/O request package informatin is not that the I/O after described first processes please
When seeking package informatin, abandon described I/O and ask package informatin, or refusal performs the behaviour corresponding to described I/O request
Make.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210080636.2A CN103324442B (en) | 2012-03-23 | A kind of method processing I/O request and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210080636.2A CN103324442B (en) | 2012-03-23 | A kind of method processing I/O request and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103324442A CN103324442A (en) | 2013-09-25 |
CN103324442B true CN103324442B (en) | 2016-11-30 |
Family
ID=
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1845071A (en) * | 2006-05-17 | 2006-10-11 | 北京飞天诚信科技有限公司 | Computer device driver updating method |
CN1928881A (en) * | 2006-09-26 | 2007-03-14 | 南京擎天科技有限公司 | Computer data security protective method |
CN101256528A (en) * | 2008-03-20 | 2008-09-03 | 中国科学院计算技术研究所 | Magnetic disk data backup system and method supporting nought backup window |
CN101453327A (en) * | 2007-11-29 | 2009-06-10 | 北京鼎信高科信息技术有限公司 | Information leakage prevention system |
CN102073813A (en) * | 2010-12-27 | 2011-05-25 | 畅捷通软件有限公司 | Method and device for controlling application on mobile device to run |
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1845071A (en) * | 2006-05-17 | 2006-10-11 | 北京飞天诚信科技有限公司 | Computer device driver updating method |
CN1928881A (en) * | 2006-09-26 | 2007-03-14 | 南京擎天科技有限公司 | Computer data security protective method |
CN101453327A (en) * | 2007-11-29 | 2009-06-10 | 北京鼎信高科信息技术有限公司 | Information leakage prevention system |
CN101256528A (en) * | 2008-03-20 | 2008-09-03 | 中国科学院计算技术研究所 | Magnetic disk data backup system and method supporting nought backup window |
CN102073813A (en) * | 2010-12-27 | 2011-05-25 | 畅捷通软件有限公司 | Method and device for controlling application on mobile device to run |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8607098B2 (en) | Generating appropriately sized core files used in diagnosing application crashes | |
WO2005019974A3 (en) | Secure protection method for access to protected resources in a processor | |
CN106845285A (en) | A kind of TEE systems coordinate to realize the method and terminal device of service with REE systems | |
CN105955802A (en) | Application operation method for mobile terminal, and mobile terminal | |
CN108647061A (en) | Call method, device and the computing device of system hidden method | |
CN104346195B (en) | Software installation method and system | |
CN106778098A (en) | A kind of guard method of Android system application program and device | |
CN114936373A (en) | Trusted security chip, trusted data processing system and method | |
CN103365798B (en) | A kind of method and system of serial ports time-sharing multiplex | |
CN108073483A (en) | The control method and system of mobile terminal | |
CN112698924A (en) | Clinical test electronic data acquisition system and operation method thereof | |
CN109684795A (en) | The method, apparatus and electronic equipment of application program anti-debug | |
CN113918999B (en) | Method and device for establishing safe ferry channel, network disk and storage medium | |
CN104536884B (en) | Code test method and device | |
CN103324442B (en) | A kind of method processing I/O request and electronic equipment | |
KR101130088B1 (en) | Malware detecting apparatus and its method, recording medium having computer program recorded | |
CN106528347A (en) | Data backup method and mobile terminal | |
CN106293667A (en) | A kind of application modification detection method and device | |
CN107608841A (en) | Hard disk test document generating method, device, equipment and readable storage medium storing program for executing | |
CN110516472A (en) | Emulation mode and device | |
CN104765626B (en) | A kind of firmware program programming method and device | |
CN107622013B (en) | Distributed system testing method and device | |
CN107579823A (en) | A kind of virtual machine entry password remapping method and device | |
CN113190181A (en) | Virtual disk mounting method and system | |
CN103902478A (en) | Hard disc protection method and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |