CN102902748A - Establishing method and managing method for file systems and random access memory (RAM) and communication chip of file systems - Google Patents
Establishing method and managing method for file systems and random access memory (RAM) and communication chip of file systems Download PDFInfo
- Publication number
- CN102902748A CN102902748A CN2012103482702A CN201210348270A CN102902748A CN 102902748 A CN102902748 A CN 102902748A CN 2012103482702 A CN2012103482702 A CN 2012103482702A CN 201210348270 A CN201210348270 A CN 201210348270A CN 102902748 A CN102902748 A CN 102902748A
- Authority
- CN
- China
- Prior art keywords
- file
- ram
- file system
- handle
- header
- 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.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses an establishing method and a managing method for file systems and a RAM and a communication chip of file systems. The establishing method for file systems is used for establishing file systems in the RAM of the communication chip and comprises the steps of establishing a file linked list in the RAM; and adding header information pointers of files in the RAM into nodes of the file linked list. The invention further discloses the managing method for file systems to perform operation management of reading and writing, modification, deletion and the like on the file systems established through the file system establishing method. The invention further discloses the RAM for using the establishing method and the managing method for file systems and the communication chip comprising the RAM. By using temporary files needed to be read and written frequently of a RAM storage portion in the communication chip, the storage and access speed is increased, and the problem of the Flash service life decreasing is solved.
Description
Technical field
The present invention relates to a kind of file system method for building up, management method and RAM(random access memory random access memory thereof) and communication chip, particularly relate to RAM and wherein file system method for building up, management method in a kind of communication chip.
Background technology
In communication chip, storage and the transmission of a large amount of usage datas of meeting, file system can realize storage and the access of file efficiently, but some file only is temporary file, do not need to preserve the Flash(flash memory that enters communication chip) in, when restarting, the system of communication chip do not wish that data exist simultaneously yet.
But the file system of traditional communication chip generally all is that framework is on Flash, so when using file system, must need to use Flash as media storage, but Flash is because erasable number of times is restricted, the erasing speed of Flash is generally slow simultaneously, so need to take a long time to finish storage and the access of file, and erasable life-span that also can reduce significantly Flash continually.
Summary of the invention
The technical problem to be solved in the present invention is the more slowly storage that causes at Flash for the file system framework of the communication chip that overcomes prior art and access speed and the defective that reduces the Flash life-span, a kind of file system method for building up, management method and RAM and communication chip are provided, the RAM storage area needs the temporary file of frequent read-write in the communication chip by utilizing, thereby has improved storage and access speed and solved the problem that reduces the Flash life-span.
The present invention solves above-mentioned technical matters by following technical proposals:
The invention provides a kind of file system method for building up, be used for setting up file system at the RAM of communication chip, be characterized in, may further comprise the steps:
S11, in RAM, set up a file linked list;
S
12, the header pointer of each file among the RAM is added in each node of described file linked list.
In RAM, set up file system among the present invention and store temporary file.
The present invention also provides a kind of file system management method, is characterized in, the file system that described file system management method uses aforesaid file system method for building up to set up, comprising following steps:
S
21, in RAM, set up a file handle;
S
22, in the file linked list of described RAM, search the header with the file of a keyword match;
S
23, the header pointer of the file of described file handle and described keyword match is set up mapping.
Utilize file handle between the outside, to carry out the interface of data interaction as the file in the file system among the present invention.
Preferably, described step S
23Further comprising the steps of afterwards:
The file of header that will comprise the file of described file handle mapping is sent to external unit.
Preferably, described step S
23Further comprising the steps of afterwards:
The input data communication device is crossed in the file of header that described file handle writes the file that comprises the mapping of described file handle.
Preferably, described step S
23Further comprising the steps of afterwards:
Described file handle is sent to external unit.
Preferably, described step S
23Further comprising the steps of afterwards:
Delete the file of the header of the described file that comprises the mapping of described file handle;
Delete the node of the pointer of the header that comprises described file in the described file linked list;
Delete described file handle.
The present invention is using file handle between as file system and outside behind the mutual interface, the user can by described file handle realize to the file in the file system modification, read or the operation such as deletion.
The present invention also provides a kind of file system management method, is characterized in, the file system that described file system management method uses aforesaid file system method for building up to set up, comprising following steps:
S
31, in RAM, set up a file handle;
S
32, in the file linked list of described RAM, add a node;
S
33, in described RAM, set up a file, and the pointer of the header of described file is write described node;
S
34, described file handle and described file the header pointer set up mapping.
Utilize equally file handle in described file system, to create new file among the present invention, thereby can in file system, add new file.
Preferably, at step S
34Further comprising the steps of afterwards:
By described file handle one input file is write in the file of header of the file that comprises the mapping of described file handle.
Preferably, at step S
33For:
File size based on described input file is set up the described file with formed objects in described RAM, and the pointer of the header of described file is write described node.
The size of the file that can write as required among the present invention, automatically be adjusted in the size of the storage file size of distributing in the file system, for example utilize existing Memory Allocation mechanism based on the file size of input file, automatically regulate the size of the memory headroom that distributes among the RAM, and the size of mating the file that need in file system, store.
The present invention provides again a kind of RAM, is characterized in, the file system that described RAM uses aforesaid file system method for building up to set up.
Preferably, described file system is used aforesaid file system management method.
The present invention provides a kind of communication chip in addition, is characterized in, described communication chip comprises aforesaid RAM.
File system of the present invention and method of operating thereof can be used among the RAM arbitrarily especially among the RAM of the chip of the Flash limited storage space such as communication chip.
On the basis that meets this area general knowledge, above-mentioned each optimum condition, but combination in any namely get the preferred embodiments of the invention.
Positive progressive effect of the present invention is:
File system method for building up of the present invention, management method and RAM thereof and communication chip are namely moved the storage medium of file system on the RAM by use file system in RAM.Because RAM does not need to wipe, can repeat to write, solved the life problems of Flash, and RAM meeting obliterated data after power down, when the system of communication chip restarts, need the in advance problem of deleted file so also solved temporary file simultaneously, utilize RAM not need the characteristic of wiping, greatly improved speed and efficient that file writes, can satisfy some and write at a high speed the application that data fields is closed at needs, such as interim storage of image or audio-frequency information etc.
Description of drawings
Fig. 1 is the process flow diagram of the file system management method of preferred embodiment of the present invention.
Fig. 2 is another process flow diagram of the file system management method of preferred embodiment of the present invention.
Embodiment
Mode below by embodiment further specifies the present invention, but does not therefore limit the present invention among the described scope of embodiments.
The GSM(global system for mobile communications that in the present embodiment file system application and is comprised RAM) in the communication chip, is about to described RAM as the medium of temporary file storage.It is smaller that the file system method for building up of the present embodiment and management method have improved some Flash storage spaces, but RAM has the resource utilization of the communication chip in the remaining situation, use simultaneously the RAM memory file system can worry erasable number of times, relatively prolonged the serviceable life of the Flash of communication chip, the file system of this moment is owing to having utilized RAM not need the action of wiping first in data writing, greatly improve the storage efficiency of temporary file in the file system, solved simultaneously the problem that writing speed is subject to the erasable speed of Flash.
So need in RAM, set up file system in the present embodiment, wherein may further comprise the steps at RAM File system made in the present embodiment:
Step 11 is set up a file linked list in RAM.
Step 12 adds the header pointer of each file among the RAM in each node of described file linked list.Each file among the wherein said RAM is operating temporary file in the described gsm communication chip.
After this described gsm communication chip can carry out corresponding file operation to the temporary file in the described file system among the RAM.
The mode of employing file linked list is managed the temporary file among the RAM in the present embodiment, wherein when creating, deleting or opening temporary file, can in described file linked list, search one by one by modes such as file names, finally find the file header information that needs, and then may operate in the described file among the RAM.
And when described gsm communication chip need to create new temporary file in RAM, as shown in Figure 1, the flow process that creates in the described file system was as follows:
After this in file linked list, after the header of file has been arranged, each header, a file is pointed in the capital, each element size is fixed in the file, can insert node in file linked list when file need to increase, the size of revised file header File simultaneously reaches the purpose of the dynamic adjustment of file size.
And can manage to realize by Memory Allocation and internal memory chain type the Memory Allocation of temporary file among the RAM in the present embodiment, thereby the realization document creation is write fashionable internal memory application and is distributed, can when file is deleted, carry out in addition correspondingly internal memory release, can realize further in addition that in addition the content when file reads is located and read.
When described gsm communication chip need to be searched temporary file in RAM, as shown in Figure 2, the flow process of searching was as follows:
After this when the user need to read the temporary file of coupling from file system, can also be further the file of header that comprises the file of described file handle mapping be sent to external unit in above-mentioned steps 34 China.
And the operation of the present embodiment File mainly realizes by file handle, when opening or creating a file, all can obtain a file handle, described file handle can be mapped to a ram file, can record simultaneously reading or writing position of current file, thereby be convenient to the operations such as modification to matching files.
And the temporary file that mates in the user need to be to file system is when making amendment, and also can also further the input data communication device be crossed in above-mentioned steps 34 in the file of header that described file handle writes the file that comprises described file handle mapping.
In addition when temporary file that the user needs to mate in the delete file system, in above-mentioned steps 34, also can also delete further the file of the header of the described file that comprises the mapping of described file handle, then delete the node of the pointer of the header that comprises described file in the described file linked list, then delete described file handle.
So the present embodiment is using file handle between as file system and outside behind the mutual interface, the user can by described file handle realize to the file in the file system modification, read or the operation such as deletion.
At last, can also be further with described to temporary file among the RAM open, create, revise and the operation such as deletion is packaged into interface shape, for example, in RAM File system, encapsulate out these several interfaces such as FOPEN, FCLOSE, FWRITE, FREAD, FSEEK, FLST, FCREATE, and then by the common formation of described interface one file management layer.After this when assigned address is the RAM of described gsm communication chip, finish operation to temporary file among the RAM by interfaces different in the file management layer.
File system described in the present embodiment is applied among the RAM of gsm communication chip, description by above embodiment as can be known, those skilled in the art can be well understood to the application and can realize by the mode that software adds essential general hardware platform.So file system described in the embodiment can also be applied to the temporary file that the system of administration module among the RAM of other modules or chip or chip produces.
Although more than described the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is limited by appended claims.Those skilled in the art can make various changes or modifications to these embodiments under the prerequisite that does not deviate from principle of the present invention and essence, but these changes and modification all fall into protection scope of the present invention.
Claims (12)
1. a file system method for building up is used for setting up file system at the RAM of communication chip, it is characterized in that, described file system method for building up may further comprise the steps:
S
11, in a RAM, set up a file linked list;
S
12, the header pointer of each file among the described RAM is added in each node of described file linked list.
2. a file system management method is characterized in that, the file system that described file system management method uses file system method for building up as claimed in claim 1 to set up, and described file system management method may further comprise the steps:
S
21, in a RAM, set up a file handle;
S
22, search the header with the file of a keyword match in the file linked list by described RAM;
S
23, the header pointer of the file of described file handle and described keyword match is set up mapping.
3. file system management method as claimed in claim 2 is characterized in that, described step S
23Further comprising the steps of afterwards:
The file of header that will comprise the file of described file handle mapping is sent to external unit.
4. file system management method as claimed in claim 2 is characterized in that, described step S
23Further comprising the steps of afterwards:
The input data communication device is crossed in the file of header that described file handle writes the file that comprises the mapping of described file handle.
5. file system management method as claimed in claim 2 is characterized in that, described step S
23Further comprising the steps of afterwards:
Described file handle is sent to external unit.
6. file system management method as claimed in claim 2 is characterized in that, described step S
23Further comprising the steps of afterwards:
Delete the file of the header of the described file that comprises the mapping of described file handle;
Delete the node of the pointer of the header that comprises described file in the described file linked list;
Delete described file handle.
7. a file system management method is characterized in that, the file system that described file system management method uses file system method for building up as claimed in claim 1 to set up, and described file system management method may further comprise the steps:
S
31, in a RAM, set up a file handle;
S
32, in the file linked list of described RAM, add a node;
S
33, in described RAM, set up a file, and the pointer of the header of described file is write described node;
S
34, described file handle and described file the header pointer set up mapping.
8. file system management method as claimed in claim 7 is characterized in that, at step S
34Further comprising the steps of afterwards:
By described file handle one input file is write in the file of header of the file that comprises the mapping of described file handle.
9. file system management method as claimed in claim 8 is characterized in that, at step S
33For:
File size based on described input file is set up the described file with formed objects in described RAM, and the pointer of the header of described file is write described node.
10. a RAM is characterized in that, the file system that described RAM uses file system method for building up as claimed in claim 1 to set up.
11. RAM as claimed in claim 10 is characterized in that, described file system is used such as each described file system management method among the claim 2-9.
12. a communication chip is characterized in that, described communication chip comprises such as claim 10 or 11 described RAM.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012103482702A CN102902748A (en) | 2012-09-18 | 2012-09-18 | Establishing method and managing method for file systems and random access memory (RAM) and communication chip of file systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012103482702A CN102902748A (en) | 2012-09-18 | 2012-09-18 | Establishing method and managing method for file systems and random access memory (RAM) and communication chip of file systems |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102902748A true CN102902748A (en) | 2013-01-30 |
Family
ID=47574980
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012103482702A Pending CN102902748A (en) | 2012-09-18 | 2012-09-18 | Establishing method and managing method for file systems and random access memory (RAM) and communication chip of file systems |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102902748A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI514142B (en) * | 2013-11-26 | 2015-12-21 | Synology Inc | Storage system and control method thereof |
CN108536545A (en) * | 2018-03-05 | 2018-09-14 | 广东美的厨房电器制造有限公司 | The information processing method and device of terminal device |
CN112506442A (en) * | 2020-12-22 | 2021-03-16 | 深圳市时创意电子有限公司 | Flash memory chip data processing method and device, electronic equipment and storage medium |
CN113569277A (en) * | 2021-06-25 | 2021-10-29 | 北京鼎普科技股份有限公司 | Method and device for checking security file data and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050025371A (en) * | 2003-09-06 | 2005-03-14 | 주식회사 텔피온 | Mobile game pack being attachable to personal computer |
CN1818887A (en) * | 2006-03-16 | 2006-08-16 | 浙江大学 | Built-in file system realization based on SRAM |
CN1949902A (en) * | 2006-11-01 | 2007-04-18 | 康佳集团股份有限公司 | Cell phone configuration method |
CN101072396A (en) * | 2006-05-12 | 2007-11-14 | 上海晨兴电子科技有限公司 | Device and method for automatically updating menu for mobile phone |
CN101908066A (en) * | 2010-07-29 | 2010-12-08 | 郑州新开普电子股份有限公司 | File system management module based on FRAM and Flash |
CN102043719A (en) * | 2011-01-05 | 2011-05-04 | 河北省电力研究院 | Method for testing IEC61850 configuration description file |
CN102486735A (en) * | 2010-12-02 | 2012-06-06 | 腾讯科技(深圳)有限公司 | Dynamic loading method and device of mobile phone software |
-
2012
- 2012-09-18 CN CN2012103482702A patent/CN102902748A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050025371A (en) * | 2003-09-06 | 2005-03-14 | 주식회사 텔피온 | Mobile game pack being attachable to personal computer |
CN1818887A (en) * | 2006-03-16 | 2006-08-16 | 浙江大学 | Built-in file system realization based on SRAM |
CN101072396A (en) * | 2006-05-12 | 2007-11-14 | 上海晨兴电子科技有限公司 | Device and method for automatically updating menu for mobile phone |
CN1949902A (en) * | 2006-11-01 | 2007-04-18 | 康佳集团股份有限公司 | Cell phone configuration method |
CN101908066A (en) * | 2010-07-29 | 2010-12-08 | 郑州新开普电子股份有限公司 | File system management module based on FRAM and Flash |
CN102486735A (en) * | 2010-12-02 | 2012-06-06 | 腾讯科技(深圳)有限公司 | Dynamic loading method and device of mobile phone software |
CN102043719A (en) * | 2011-01-05 | 2011-05-04 | 河北省电力研究院 | Method for testing IEC61850 configuration description file |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI514142B (en) * | 2013-11-26 | 2015-12-21 | Synology Inc | Storage system and control method thereof |
CN108536545A (en) * | 2018-03-05 | 2018-09-14 | 广东美的厨房电器制造有限公司 | The information processing method and device of terminal device |
CN112506442A (en) * | 2020-12-22 | 2021-03-16 | 深圳市时创意电子有限公司 | Flash memory chip data processing method and device, electronic equipment and storage medium |
CN113569277A (en) * | 2021-06-25 | 2021-10-29 | 北京鼎普科技股份有限公司 | Method and device for checking security file data and electronic equipment |
CN113569277B (en) * | 2021-06-25 | 2024-01-26 | 北京鼎普科技股份有限公司 | Method and device for checking security document data and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3631612B1 (en) | File system for shingled magnetic recording (smr) | |
CN102902709B (en) | The document storage system of a kind of fixed space distribution and implementation method | |
US7937522B2 (en) | Method for flash memory data management | |
CN108153487B (en) | A spaceborne storage multi-source data file system based on NAND FLASH | |
CN105242881A (en) | Distributed storage system and data read-write method for same | |
CN107220348B (en) | Data collection method based on Flume and Alluxio | |
CN101986649B (en) | Shared data center used in telecommunication industry billing system | |
CN105593828A (en) | Method for managing files, distributed storage system and management node | |
CN103154911A (en) | Systems and methods for managing an upload of files in a shared cache storage system | |
CN102819494B (en) | Optimization method when a kind of flash memory is sequentially written in | |
CN110018966A (en) | A kind of memory, storage system, host and data manipulation, rubbish recovering method | |
US20150169570A1 (en) | Method and device for managing data | |
US10747665B2 (en) | Cost-based garbage collection scheduling in a distributed storage environment | |
CN101510838A (en) | Method for implementing perdurable data queue | |
CN109189772A (en) | File management method and system for no file system storage medium | |
CN103885887A (en) | User data storage method, reading method and system | |
US20190179565A1 (en) | Global occupancy aggregator for global garbage collection scheduling | |
CN102902748A (en) | Establishing method and managing method for file systems and random access memory (RAM) and communication chip of file systems | |
CN101510332A (en) | Method and apparatus for managing memory space of smart card | |
CN102523301A (en) | Method for caching data on client in cloud storage | |
CN109189724B (en) | Method and device for improving audio and video data storage efficiency of video monitoring system | |
CN100507873C (en) | FLASH document management method and system in FLASH memory | |
CN106354718A (en) | File management method and device of subscriber identity module | |
CN103713926A (en) | Method and system for updating software of client in advance | |
JP7082701B2 (en) | Magnetic disk management methods, magnetic disk management devices, electronic devices, computer programs and computer readable storage media |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130130 |