亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? matchbox-design.tex

?? 傳感器網絡中的嵌入式操作系統源代碼
?? TEX
字號:
\documentclass{article}\usepackage{fullpage}\parindent 0em\parskip 0.2cm\newcommand{\kw}[1]{\mbox{\tt #1}}\newcommand{\file}[1]{\mbox{\tt #1}}\title{Design of Matchbox, the simple filing system for motes}\author{David Gay \\Version 1.0}\begin{document}  \maketitle\section{Overview}The mote filing system is designed to provide a simple filing system formote-based applications. Its design goals and functionality are coveredin the matchbox document; this document describes Matchbox's implementationfor the mica family of motes.This implementation is tailored to the Atmel AT45DB041B flash chip usedon the Micas. It should consider the following constraints of this particular flash chip:\begin{itemize}\item The flash is divided into sectors (mostly 128K, though some are smaller).\item Each sector is divided into pages, each page is 264 bytes long. \item Pages can only be written as a whole.\item Pages should be erased before being written (whatever ``should'' means).\item After 10'000 writes to a sector, all its pages should have beenwritten at least once.\end{itemize}Note that these are different from ``usual'' flash rules. These typically say:\begin{itemize}\item Each page/byte/whatever can be written a limited number of times (e.g.,100'000)\item Erases are on a larger granularity than writes (e.g., 64k-erases, 528-byte writes)\end{itemize}\section{Data structures}\subsection{On flash} The 264-byte page is divided into 256 data bytes and 8 metadata bytes.The metadata stores the following information:\begin{itemize}\item per-page CRC (data bytes only) (16 bits)\item page-write counter (16 bits)\item last-byte-used in page (9 bits)\item next page pointer (a page number), or \kw{IFS\_EOF\_BLOCK} forthe last page\item root page marker (3 bits)\item metadata check byte (8 bits)\end{itemize}Pages are numbered from 0 to <file system capacity in pages>-1. Theexpectation is that the file system will use some whole number of flashsectors. Pages \kw{IFS\_FIRST\_PAGE} through \kw{IFS\_FIRST\_PAGE +IFS\_NUM\_PAGES} are requested from the \kw{ByteEEPROM} component foruse by the filing system.There are two types of pages: data pages (root page marker is 0), andfirst-meta-data-page pages (root page marker is \kw{IFS\_ROOT\_MARKER}).The metadata check byte detects inconsistent metadata. It is the bitwisecomplement of the sum of the three bytes that store the last-byte-used inpage, the next page pointer and the root page marker.Files and the metadata are both byte-streams. A byte-stream is a sequenceof bytes, and is identified by its initial page number. The pages of abyte-stream are found by following the linked list formed by the next pagepointers. Data ends at the first page where last-byte-used is not 256. Notethat the linked list of pages may extend arbitrarily past the last pagecontaining data - this means that space has been reserved for futureexpansion of the byte-stream.The per-page CRC is always used for metadata, it is used for files if the\kw{FS\_CRC\_FILES} constant (in \file{Matchbox.h}) is true.\paragraph{Meta-data format (viewed as a byte-stream)}:A header stores the meta-data version number, followed by an unsorted listof file entries. Each file entry is a 14-byte null-terminated stringfollowed by the file's byte-stream's initial page number (2 bytes). Thefirst page of the meta-data bytestream has the first-meta-data-pagepage-type. The other pages of the meta-data, and the file byte-stream pageshave the data page type.Note that their is no fixed \emph{root} page: the initial page number of themeta-data is found by scanning the flash looking for the page with typefirst-meta-data-page which contains the highest meta-data version number.This avoids continuously writing the \emph{root} page (a bad idea given the limited number of writes supported by flash). Scanning the flash to locatethis page at boot time is acceptable in Matchbox as the flash is small(a few 100k) and page access relatively fast (approx. 1ms). There is also no explicit listing of the free pages, this can also bereconstructed at boot time once the initial page of the meta-data isfound.\subsection{In memory} We must keep the following information (each piece of information isfollowed by the name of the component which owns it):\begin{itemize}\item Meta-data root page.\item Meta-data version number.\item Free page bitmap.\item Last allocated page.\item Number of free pages.\item For each read file descriptor:  \begin{itemize}  \item initial page number  \item current page  \item next page  \item current page offset  \item last offset on this page  \item use-crc-for-this-file flag  \end{itemize}\item For each write file descriptor:  \begin{itemize}  \item initial page number  \item current page  \item next page  \item the current page's number (first page is 0, second is 1, etc)  \item current page offset  \item last offset on this page  \item remaining reserved bytes  \item use-crc-for-this-file flag  \end{itemize}\item various pieces of miscellaneous state for operations in progress\end{itemize}Matchbox uses one read and one write file descriptor internally (for themetadata).\section{Algorithms}This section mentions a few basic principles, rather than cover the(straightforward) algorithms for each operation:Update of meta-data is always atomic: new meta-data is written by making acopy of the old meta-data in new pages, with appropriate changes. The newinitial metadata page contains a higher version number than the currentmetadata. The initial page is only marked as a first-meta-data-page onceall other metadata has been written. New meta-data is only written after theinformation it refers to is known to be valid (e.g., on new file creation,the file's first page has been successfully written).At boot time, the initial metadata page is located by reading all of theflash sequentially and finding the valid (by reling both on the metadatacheck byte and the per-page CRC) first-meta-data-page page with the highestversion number.Once the initial metadata page is located, the free page bitmap is built bywalking through the filing system. Inconsistencies in free pages will leadto the filing system being marked readonly. A separate fsck-style toolshould be written to fix this (note that this should only happen as aresult of page corruption given the atomic metadata updates, hence shouldbe hopefully rare).A corrupt file is one containg a page with a bad CRC. This could be due,e.g., to a power-off during a file-page write. Currently, attempts toread such a file will fail when the corrupt page is reached. Attemptsto open a corrupt file for writing will fail.A free page is found by scanning the free page bitmap starting at the valueof \emph{Last allocated page} (and updating \emph{Last allocatedpage}). This produces some amount of ``wear levelling'' (i.e., writing eachpage an equal number of times). The boot-time value of \emph{Last allocatedpage} is the meta-data initial page number.A background task sequentially walks over the filing system's pagesand checks their write counters. Any page which is more than 9000writes ``old'' is rewritten (and hence sees its write counter updated).The write counter value is maintained inside the EEPROM component.A walk rate of one page per minute should be sufficient (assumingthat write-rate is not high - may need further analysis and/oradaptivity).\section{Interaction with TinyOS and Current Status}Matchbox will interoperate with direct access to the flash chip via the\kw{ByteEEPROM} component. Matchbox reserves its area of the flash chipwith \kw{ByteEEPROM} at boot time. It is possible to change this area byediting the \kw{IFS\_FIRST\_PAGE} and \kw{IFS\_NUM\_PAGES} constants in\file{tos/lib/FS/IFS.h}.The write counters and the background task which rewrites pages have notyet been implemented.\end{document}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩激情一区二区三区| 国产精品视频第一区| 精品国产伦一区二区三区观看方式| 555www色欧美视频| 精品成人一区二区| 久久久久久久电影| 亚洲男人天堂一区| 日本欧美一区二区三区乱码| 伦理电影国产精品| 91美女片黄在线| 精品视频在线免费观看| 日韩欧美一级片| 亚洲啪啪综合av一区二区三区| 亚洲第一电影网| 国产精品18久久久久久久久| 色猫猫国产区一区二在线视频| 在线成人av网站| 18成人在线观看| 日韩精品亚洲专区| 日韩专区一卡二卡| 国产91色综合久久免费分享| 色就色 综合激情| 精品日韩一区二区三区免费视频| 亚洲欧洲国产日韩| 韩国女主播成人在线| 欧美挠脚心视频网站| 国产精品乱子久久久久| 五月天中文字幕一区二区| 成人一区二区三区视频| 精品免费视频.| 久久精品国产精品青草| 欧美猛男超大videosgay| 日本一二三不卡| 国模一区二区三区白浆| 91精品国模一区二区三区| 亚洲黄色小说网站| 91小视频在线| 一区二区三区波多野结衣在线观看 | 91国偷自产一区二区开放时间| 久久网站热最新地址| 久久成人免费电影| 欧美一区二区日韩一区二区| 理论片日本一区| 成人av网址在线| 中文字幕精品—区二区四季| 美女视频第一区二区三区免费观看网站| 欧美一a一片一级一片| 亚洲精品国产精华液| 在线区一区二视频| 亚洲国产精品一区二区久久恐怖片| 成人在线综合网| 亚洲黄色尤物视频| 欧美日韩精品一区二区三区四区 | 91视频免费看| 亚洲综合在线电影| 欧美日韩aaaaa| 久久精品99国产精品日本| 久久久久国产成人精品亚洲午夜| 韩国v欧美v日本v亚洲v| 国产精品理伦片| 欧美乱妇15p| 国产美女视频91| 樱桃视频在线观看一区| 91精品国产综合久久精品| 美女被吸乳得到大胸91| 国产精品久久久久久久久免费樱桃 | 丁香网亚洲国际| 亚洲精品国产a| 精品国产乱码久久久久久蜜臀| 成人免费精品视频| 免费三级欧美电影| 亚洲精品久久久蜜桃| 中文字幕色av一区二区三区| 99久久99久久免费精品蜜臀| 亚洲成人精品在线观看| 久久久久久久综合日本| 欧美中文字幕亚洲一区二区va在线| 男人的天堂亚洲一区| 亚洲丝袜美腿综合| 精品久久人人做人人爱| 欧洲一区在线电影| 波多野结衣的一区二区三区| 亚洲第一福利视频在线| 亚洲免费在线观看| 国产欧美日产一区| 精品国产凹凸成av人导航| 精品视频免费在线| 欧美亚男人的天堂| 在线观看日韩一区| 91浏览器打开| 91视频国产资源| 国产一区在线精品| 一区二区三区高清不卡| 国产精品伦一区二区三级视频| 久久蜜桃av一区精品变态类天堂| 欧美精品第1页| 欧美三区免费完整视频在线观看| av一区二区久久| 91麻豆精品在线观看| 成人在线视频一区| 91视视频在线观看入口直接观看www| 国产福利一区二区三区视频在线| 九九精品视频在线看| 蜜桃久久久久久久| 国产乱码字幕精品高清av| 日本v片在线高清不卡在线观看| 亚洲最大成人综合| 免费观看成人av| 激情综合色综合久久综合| 久久99最新地址| 成人免费视频app| 91色九色蝌蚪| 欧美精品久久天天躁| 日韩欧美三级在线| 国产精品国产自产拍高清av| 国产精品国产自产拍高清av王其| 亚洲精品视频观看| 蜜臀av一区二区在线免费观看| 国产一区二区三区在线观看精品| 成人avav影音| 欧美一区二区三区精品| 国产欧美日韩亚州综合| 亚洲资源中文字幕| 国产精品久久精品日日| 亚洲精品一二三| 奇米精品一区二区三区四区| 成人综合日日夜夜| 91.com视频| 国产精品的网站| 久久国产福利国产秒拍| 懂色av一区二区夜夜嗨| 91超碰这里只有精品国产| 国产日韩欧美精品一区| 亚洲一二三区在线观看| 成人性视频网站| 日韩一卡二卡三卡四卡| 一区二区免费视频| 粉嫩在线一区二区三区视频| 欧美日产国产精品| 亚洲视频香蕉人妖| 成人一二三区视频| 精品播放一区二区| 老司机午夜精品| 91精品国产综合久久香蕉麻豆 | 麻豆国产欧美日韩综合精品二区 | 综合激情网...| 成人av网址在线观看| 欧美国产精品久久| 国产美女视频一区| 久久蜜桃av一区精品变态类天堂 | 久久99久久久久久久久久久| 欧美精品久久99久久在免费线 | 久久精品一区二区三区av| 男男成人高潮片免费网站| 69久久夜色精品国产69蝌蚪网| 亚洲国产精品尤物yw在线观看| 在线视频你懂得一区| 午夜免费久久看| 日韩欧美在线123| 久久国产精品99久久人人澡| 久久综合狠狠综合久久综合88 | 国产一区二区剧情av在线| 精品国产a毛片| 成人视屏免费看| 一区二区三区在线看| 欧美体内she精高潮| 日本中文一区二区三区| 日韩一区二区不卡| 成人丝袜视频网| 一区二区三区在线免费| 91麻豆精品国产91久久久使用方法| 日韩中文字幕不卡| 国产精品久久久久桃色tv| 99re6这里只有精品视频在线观看| 亚洲欧美综合色| 日韩欧美在线1卡| 成人高清视频在线| 日本中文一区二区三区| 国产精品网曝门| 欧美一区二区三区精品| 972aa.com艺术欧美| 精品一区二区免费视频| 精品国产不卡一区二区三区| 波多野结衣的一区二区三区| 午夜视频在线观看一区| 国产欧美综合在线| 欧美一卡二卡在线观看| 成人丝袜视频网| 麻豆一区二区三| 亚洲高清免费一级二级三级| 久久精品日韩一区二区三区| 欧美日韩一级大片网址| 成人精品一区二区三区四区 | 成人av网址在线| 亚洲成人高清在线| 亚洲伦在线观看| 国产精品情趣视频| 国产午夜精品久久| 久久夜色精品国产欧美乱极品| 欧美裸体bbwbbwbbw|