Access method and device for input/output port

A technology of output port and access method, which is applied in the computer field, can solve problems such as high technical requirements of users, cannot withstand system stability function test, and cannot withstand long-term system stability function test, etc., and achieves simple access and low-tech required effect

Active Publication Date: 2014-04-23
DAWNING INFORMATION IND BEIJING +1
View PDF2 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method is not suitable for novice users
Moreover, this method is found in the process of use, which cannot withstand the long-term system stability function test
[0004] Aiming at the problems of high technical requirements for users and failure to withstand the long-term system stability function test in the way of accessing IO ports in user space under the non-X86 system architecture in related technologies, no effective solution has been proposed yet

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Access method and device for input/output port
  • Access method and device for input/output port

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention belong to the protection scope of the present invention.

[0030] According to an embodiment of the present invention, a method for accessing an input / output port is provided.

[0031] Such as figure 1 As shown, the access method of the input / output port according to the embodiment of the present invention includes:

[0032] Step S101, analyzing the device file of the current operating system to determine whether there is an interface device file in the device file of the operating system;

[0033] Step S103, if the result of the determination is n...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an access method and device for an input/output port. The access method includes the steps that a device file of a current operation system is analyzed, and whether an interface device file exists in the device file of the operation system or not is judged; if not, device interface process information is added in a system kernel of the operation system, so that the device file of the operation system is prompted to have the interface device file; through a preset functional instruction, the interface device file is called to have access to the input/output port. When the operation system lacks the interface device file, the device interface progress information is added, so that the operation system is prompted to have the interface device file, a user can call the interface device file to have the access to the port through the preset functional instruction, the trouble that a mmap function, mapping and other operation need to be called to have the access to the input/output port by user space is avoided, and technical requirements are reduced for the user.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for accessing an input / output port. Background technique [0002] Under the X86 system architecture, when accessing the IO port in the user space, the IO port access instructions in and out provided by the X86 architecture are usually used for access. However, under other system architectures such as the average execution speed of single-word fixed-point instructions (Million Instructions Per Second, hereinafter referred to as MIPS), there are no instructions in and out. In this way, you can only use other methods for IO port access. [0003] Other access methods in the prior art include using the mmap function in C language to map the address space where the IO port is located to the user space, and accessing the IO port is achieved by accessing the address in the address space. However, using the mmap function call to map the address space where the IO port is loc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
Inventor 邵宗有沙超群郑臣明李永成
Owner DAWNING INFORMATION IND BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products