TW201007475A - Electronic system and method thereof capable of sharing application configurations - Google Patents

Electronic system and method thereof capable of sharing application configurations Download PDF

Info

Publication number
TW201007475A
TW201007475A TW97131181A TW97131181A TW201007475A TW 201007475 A TW201007475 A TW 201007475A TW 97131181 A TW97131181 A TW 97131181A TW 97131181 A TW97131181 A TW 97131181A TW 201007475 A TW201007475 A TW 201007475A
Authority
TW
Taiwan
Prior art keywords
application
electronic system
configuration
configuration parameter
file
Prior art date
Application number
TW97131181A
Other languages
Chinese (zh)
Other versions
TWI428765B (en
Inventor
Yao-Hong Du
Original Assignee
Hon Hai Prec Ind Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW97131181A priority Critical patent/TWI428765B/en
Publication of TW201007475A publication Critical patent/TW201007475A/en
Application granted granted Critical
Publication of TWI428765B publication Critical patent/TWI428765B/en

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

An electronic system comprises a memory, an interface and a device driver. A plurality of applications and a document are stored in a user space of the memory, the document storing configuration parameters. The interface in response to invocation from the application parses the document to retrieve the parameters. The device driver creates data structure for the parameters in the kernel space of the memory, thus to facilitate a plurality of programs to execute different functions of the system by commonly utilizing the parameters through the device driver.

Description

201007475 九、發明說明: 【發明所屬之技術領域】 本發明涉及電腦技術,尤其涉及一種可共享應用程式配 置參數的電子系統。 【先前技術】 在程式開發中經常使用延伸標記語言(extensible Markup Language,XML)來存貯配置參數(configuration),應 用程式調用XML解析庫或利用其解析函數,來解析自已的 © XML格式的配置文件,以生成配置樹。這方法既簡單又直 觀,因此已被廣泛採用。 但是在實踐中應用程式(application)彼此之間、或應用 程式與作業系統(operating system)内核(kernel)之間在需要201007475 IX. Description of the Invention: [Technical Field] The present invention relates to computer technology, and more particularly to an electronic system that can share application configuration parameters. [Prior Art] In the program development, the Extensible Markup Language (XML) is often used to store configuration parameters. The application calls the XML parsing library or uses its parsing function to parse the configuration of its own XML format. File to generate a configuration tree. This method is simple and straightforward and has been widely adopted. But in practice, between applications, between applications and operating system kernels,

共用配置時,用現有的方法難以完成。詳細情形請參照圖1, 記憶體100中包含了用戶空間(user space)及内核空間(kernel space)。應用程式群組l〇a〜10b及記錄配置參數的文件12皆 設置於用戶空間;而内核程式位於内核空間。任何的應用程 式要存取其配置參數時,會從解析文件12的XML内容以取 得配置參數,並依據XML格式的内容中各配置參數的結構 關係以建立配置參數的關係樹,或稱為配置樹,例如圖1中 的配置樹11a〜11c。而配置參數關係樹中的每一個節點記錄 配置參數的值。應用程式會將配置參數關係樹設置於記憶體 100中其應用程式本身可以存取的位置,而其它的應用程式 則不知道其位置,也沒有權限可以存取。這樣會造成各配置 樹内的參數值難以同步,也難在程式之間共享。 5 201007475 * 然而有些參數需要在程式之間共享。舉例來說,在非對 稱式數位用戶線(Asymmetric Digital Subscriber Line ’ 簡稱 ADSL)數據機中,在利用點對點協定(Point-To-Point Protocol, * PPP)或動態主機組態協定(dynamic host configuration protocol,簡稱 DHCP )取得網路通訊協定(Internet protocol, -簡稱IP)位址後,該數據機中的其它程式例如網路位址變換 (network address translation,NAT )或防火踏(Firewall)程式 都需要取用上述IP位址。需要共享並同步處理的參數在上 ❹述的配置樹目前架構下難以達成其目的。這樣導致的結果是 程式之間無法共用配置參數,作業系統的内核程式13也很 難使用配置樹或XML配置參數文件。 【發明内容】 有鑒於此’需提供一種可共享應用程式配置參數的電子 系統’包括記憶體、介面模組及裝置驅動程式。上述記憶體, 包括用戶空間及内核空間,該用戶空間存儲複數應用程式及 參文件’該文件記錄複數配置參數,其中上述配置參數由第一 應用程式使用。上述介面模組回應上述第一應用程式之請求 以解析包含上述配置參數的上述文件,以及取得上述配置參 數。上述裝置驅動程式建立上述配置參數的資料結構於上述 記憶體中的内核空間,讓上述電子系統的複數應用程式經由 上述農置驅動程式從上述資料結構共同存取上述配置參 數’以執行上述電子系統的不同功能。 此外’還需提供一種可共享應用程式配置參數的方法, 執行於電子系統中。上述電子系統包含應用程式、介面模組 6 201007475 •及裝置驅動程式。上述應用程式請求上述介面模組以使用上 述應用程式的配置參數,其中上述應用程式儲存於上述電子 系統的記憶體中的用戶空間。上述介面模組回應上述廣用程 • 式之請求以解析包含上述應用程式之配置參數的文件,以及 取得上述配置參數。上述裝置驅動程式建立上述配置參數的 資料結構於上述記憶體中的内核空間,讓上述電子系统的複 '數應用程式經由上述裝置驅動程式從上述資料結構共同存 取上述配置參數,以執行上述電子系統的不同功能。 ❹【實施方式】 本發明可以執行於各種電子裝置或系統,例如路由器、 非對稱式數位用戶線(Asymmetric Digital Subscriber Line,簡 稱ADSL)裝置、鏡線數據機(cable modem)、以及機上盒(Set Top Box)。 參閱圖2,電子系統200包含非揮發性記憶體 (Nonvolatile Memory)210、處理器 220、主記憶體 230 及通 ®訊單元240。通訊單元240可以包含通訊埠及通訊相關的元 件,例如無線通訊的控制器及天線、ADSL裝置中的數位訊 號處理器(Digital Signal Processor)及類比至數位轉換器 (Analog-to-Digital Converter)、纜線數據機中的調諧器 (tuner)、乙太網路(Ethernet)控制器、通用串列匯流排 (Universal Serial Bus,USB)控制器及/或週邊元件互聯標準 (Peripheral Component Interconnect ’ PCI)控制器。處理器 220 可以由積體電路(Integrated Circuit,簡構1C)組成,用以處 理資料及執行程式。處理器10可以是由單顆封裝的1C所組 7 201007475 -成,或連接多顆封裝的ic而組成。舉例來說,處理器10可 以僅包含中央處理器(Central Processing Unit,簡稱CPU), • 或者是CPU、通訊控制器的組合。所述的通訊控制器用以控 • 制電子系統200中的各元件的通訊,或電子系統200與外部 裝置的通訊。在不同的實施方式中,上述各種通訊元件可以 . 整合在通訊單元240或處理器220之中。 • 主記憶體230可以包含各種隨機存取記憶體(RandomWhen sharing the configuration, it is difficult to complete with the existing method. For details, please refer to FIG. 1. The memory 100 includes a user space and a kernel space. The application groups l〇a to 10b and the file 12 for recording configuration parameters are all set in the user space; the kernel program is located in the kernel space. When any application wants to access its configuration parameters, it will parse the XML content of the file 12 to obtain the configuration parameters, and according to the structural relationship of each configuration parameter in the content of the XML format to establish a relationship tree of configuration parameters, or configuration Trees, such as configuration trees 11a-11c in Figure 1. Each node in the configuration parameter relationship tree records the value of the configuration parameter. The application sets the configuration parameter relationship tree to a location in the memory 100 that the application itself can access, while other applications do not know their location and have no access. This will make the parameter values in each configuration tree difficult to synchronize and difficult to share between programs. 5 201007475 * However, some parameters need to be shared between programs. For example, in an Asymmetric Digital Subscriber Line (ADSL) data machine, a point-to-point protocol (PPP) or a dynamic host configuration protocol is utilized. , referred to as DHCP) After obtaining the Internet Protocol (IP) address, other programs in the modem, such as network address translation (NAT) or firewall (Firewall) programs are required. Use the above IP address. The parameters that need to be shared and synchronized are difficult to achieve in the current architecture of the configuration tree described above. As a result, configuration parameters cannot be shared between programs, and the operating system kernel program 13 is also difficult to use the configuration tree or XML configuration parameter files. SUMMARY OF THE INVENTION In view of the above, it is desirable to provide an electronic system that can share application configuration parameters, including a memory, an interface module, and a device driver. The above memory includes a user space and a kernel space, and the user space stores a plurality of applications and a reference file. The file records a plurality of configuration parameters, wherein the configuration parameters are used by the first application. The interface module responds to the request of the first application to parse the file containing the configuration parameter and obtain the configuration parameter. The device driver establishes the data of the configuration parameter in a kernel space in the memory, and allows the plurality of applications of the electronic system to jointly access the configuration parameter from the data structure via the farm driver to execute the electronic system. Different features. In addition, there is a need to provide a method for sharing application configuration parameters that is implemented in an electronic system. The above electronic system includes an application, an interface module 6 201007475 • and a device driver. The application requests the interface module to use the configuration parameters of the application, wherein the application is stored in a user space in the memory of the electronic system. The interface module responds to the above-mentioned wide-range request to parse a file containing the configuration parameters of the application, and obtain the above configuration parameters. The device driver establishes the data of the configuration parameter in a kernel space in the memory, so that the complex application of the electronic system accesses the configuration parameter from the data structure via the device driver to execute the electronic Different functions of the system.实施 [Embodiment] The present invention can be implemented in various electronic devices or systems, such as routers, Asymmetric Digital Subscriber Line (ADSL) devices, cable modems, and set-top boxes ( Set Top Box). Referring to FIG. 2, the electronic system 200 includes a nonvolatile memory 210, a processor 220, a main memory 230, and a communication unit 240. The communication unit 240 can include communication ports and communication related components, such as a controller and an antenna for wireless communication, a Digital Signal Processor in an ADSL device, and an Analog-to-Digital Converter. Tuner, Ethernet controller, Universal Serial Bus (USB) controller, and/or Peripheral Component Interconnect 'PCI' in cable modems Controller. The processor 220 can be composed of an integrated circuit (Simplified Circuit 1C) for processing data and executing programs. The processor 10 may be composed of a single package of 1C, or a plurality of packages of ic. For example, the processor 10 may include only a Central Processing Unit (CPU), or a combination of a CPU and a communication controller. The communication controller is used to control communication of various components in the electronic system 200, or communication between the electronic system 200 and an external device. In various embodiments, the various communication components described above may be integrated into the communication unit 240 or the processor 220. • The main memory 230 can contain various random access memories (Random)

Access Memory,簡稱RAM);非揮發性記憶體210的實例如 ©電子可抹除可程式化唯讀記憶體(Electrically Erasable Programmable ROM,簡稱 EEPROM)或快閃記憶體(Flash Memory)。非揮發性記憶體210包含電子系統200的作業系 統及應用程式。非揮發性記憶體21〇中的程式及資料可以資 料壓縮的形式儲存,待需執行或使用時再解壓縮至主記憶體 230 ° 請參照圖3,電子系統200可以包含記憶體100A。記憶 •體100A可以是虛擬記憶體,實際上可以映射至主記憶體23〇 及/或非揮發性記憶體210。記憶體100A包含用戶空間及内 核空間。配置參數文件12具有應用程式i〇c的複數配置參 數,其中上述配置參數至少有二個程式使用。 為了達到配置參數共享及同步化的目的,電子系統200 的其中一個應用程式(例如圖3中的應用程式l〇c)啟動對配 置參數文件12的解析程序後,經由内核程式13根據配置參 數文件12中各配置參數的關係,以建立配置參數文件12中 各配置參數的配置樹(例如配置樹lld)於記憶體100A的内核 8 201007475 工間所有要使用到配置樹Ud中的參數的 過内核程式13來執行讀取或修改。雖然在此實 配=資料結構為樹狀結構,但是並非限定於=可 Γο 10比可^結串列⑴心㈣等資料結構。應用程式 :L i内核程式13讀取或修改配置樹iid内的 參數,藉此達耻置錄共享與同步㈣ 方式請參照圖4。 在圖4 t ’電子系統具有應用程式群組iq,其中包 β含複數應用程式A1〜An,其中n為大於:的正整數。應用程 式A1〜An的實例可包含圖3中的應用程式群組他〜⑽。電 子系統200還具有應用程式介面3〇、内核程式13提供的系 統呼叫32、驅動程式34、及裝置檔案(device me或device special file)36 ° 應用程式介面30包含函式庫(library),其中包含複數用 以解析配置參數文件(例如配置參數文件12)的函式 (function) ’根據上述解析結果以建立對應配置樹的函式、以 φ 及修改及讀取配置樹及其中參數值的函式。由於配置樹在内 核空間中,應用程式介面30的函式可以利用内核程式13提 供的系統呼叫(system call,例如“ioctl”),以驅使内核程式13 致動驅動程式34以完成建立或修改配置樹群組38中的配置 樹的動作。配置樹群組38包含複數配置樹Tl~Tm,其中m 為大於1的正整數。舉例來說,配置樹群組38包含圖3中 的配置樹11 d。 裝置檔案在Unix、Linux等以及相類似的作業系統中用 9 201007475 •以代表特定裝置驅動程式及其對應的裳置’例如儲存於/dev 的目錄下,使應用程式可以透過標準的輸出/輸入系統呼叫 • 來與該裝置檔案代表的驅動程式互動。在本實施方式中’裝 •置檔案36的檔名為“xmlconf”’並且利用裝置檔案36對應配 置樹群組38,以代表中的複數配置樹。圖4中,裝置槽案 36中的設備主代碼(maj〇r number)N1為代表驅動程式34的 一個號碼,而設備次代碼(minor number)N2包含了代表配置 樹Tl~Tm的複數筆號碼,每一筆設備次代碼代表一個配置 β樹。應用程式群組1〇中的應用程式、應用程式介面30中的 函式或驅動程式34皆能夠透過裝置檔案36以指定配置樹群 組38中的特定配置樹,並予以讀取或修改。 應用程式開啟設備文檔/dev/xmlconf就可以找到設備主 代碼N1,透過設備號就可以請求内核程式13找到並利用驅 動程式34。驅動程式34利用一筆設備次代碼就可以找到其 對應的特定配置樹,並根據上述應用程式的請求以修改上述 配置樹或讀取並回傳配置參數值給上述應用程式。 裝置播案的實例包含字元裝置檔案(character special file 或 character device)及區塊裝置播案(block special file 或 Mock device)。字元裝置檔案對應的字元裝置與作業系統以 字元為皁位來交換資料’而區塊裝置與作業系統則以較大的 資料區塊為單位來交換資料。字元裝置的實例包含數據機 (modem)及電話通訊相關的裝置。區塊裝置的實例包含硬式 磁碟機及光碟機。驅動程式34每次讀取配置樹上一個節點 的配置參數值,所以裝置檔案36可以是字元裝置檔案。 201007475 實例: 圖5顯示配置參數文件12的實例,其對應的配置樹的 * 一部分顯示於圖6。配置參數文件12a,其中的配置參數包 •含在 &lt;ConfigTree&gt; 與 &lt;/ConfigTree&gt; 之間。&lt;AtmCfg&gt; 與 &lt;/AtmCfg&gt;中間包含非同步傳輸模式(asynchronous transfer mode ’ 簡稱 ATM)相關的設置。&lt;AtmCfgTd&gt;與 &lt;/AtmCfgTd&gt; 之間包含關于ATM連接類型(Link Type )的設置,比如 &quot;CBR&quot;表示用恆定的速率連接。&lt;AtmCfgVcc&gt;與 ❹&lt;/AtmCfgVcc&gt;之間主要包含ATM層的持久虛擬線路 (permanent virtual circuit,簡稱 PVC)參數。&lt;86(^£吕&gt;與 &lt;/SecCfg&gt;之間主要包含網路安全的相關設置。 之間是 Wi_Fi(IEEE 802.11) 相關的設置。&lt;11〇1^匸£8&gt;與&lt;/RouteCfg&gt;之間主要設置電子 系統200的靜態路由表。間主要 是做埠對應(Port Map)用的設置。 之間是設置時間伺服器的參數,即與簡單網路時間協定 (Simple Network Time Protocol,SNTP)祠服器相關的參數。 &lt;Voice&gt; 與 &lt;/Voice&gt; 之間是網路電話(Voice Over Internet Protocol,簡稱 VoIP)相關的設置。&lt;pppsrv_8__35&gt; 與 &lt;/pppsrv_8_35&gt; 之間是點對點協定(Point-To-Point Protocol, PPP)連接PPP伺服器時的相關設置。&lt;wan_8_35&gt;與 &lt;/wan_8_35&gt;之間的配置參數主要用于建立廣域網路(Wide Area Network,簡稱WAN)端的介面有關,它和ATM PVC是 緊密相關的。 11 201007475 電子系統200中的内核程式13或應用程式皆可以啟動 配置參數文件12a轉換成配置樹的工作。舉例來說,内核程 式13在電子系統2〇〇開機時啟動配置樹的建立。或者,應 用私式Al(其中i為正整數,且lSi^n)啟動配置樹的建立。 電子系統200内執行的内核程式13或應用程式A1〜An可以 利用應用程式介面30將配置參數文件12a轉換成特定的資 料格式’再交給驅動程式34以建立配置參數文件12a的對 應配置樹。 §青參照圖7,當電子系統200内的程式需要建立配置樹 時’ #青求執行應用程式介面30中用來建立配置樹的函式(步 驟7〇〇) °其中上述請求中包對應驅動程式34之裝置檔案36 的名稱。上述函式回應上述程式的請求以分析配置參數文件 12a來產生代表配置參數文件12a之結構及其内配置參數值 的賓料結構(步驟702)。〈protocol:^籤中的autoScan屬性值 可以在步驟702的資料結構中以“pr〇t〇c〇l.autoScan=enable” 來表示。上述函式再透過電子系統200之作業系統的系統呼 叫32以傳遞上述裝置槽案36的槽名、上述資料結構及其它 資料至内核程式13(步驟704)。内核程式13根據上述檔名取 得裝置檔案36中的設備主代碼N1 ’再根據設備主代碼N1 取得驅動程式34,並將上述資料結構交給驅動程式34,使 驅動程式34開始建立上述資料結構對應的配置樹(步驟 706)。驅動程式34新增設備次代碼N2以作為將要建立之配 置樹的代碼(步驟708),並根據上述資料結構以建立配置參 數文件12a對應的配置樹Tj(其中j為正整數,且步 12 201007475 -驟 710)。 圖6顯示配置參數文件12a中的區塊B1轉換成配置樹 • 的示意圖。區塊B1中&lt;SystemInfo&gt;與&lt;/SystemInfo &gt;標籤以 .“Systemlnfo,,為名,其間包含了以 “protocol”、“sysLog” 及 “sysUserName”為名的標籤。因此,在被程式請求的情況下, 驅動程式34會在配置參數文件12a對應的配置樹中建立 “Systemlnfo”、“protocol”、“sysLog”及 “sysUserName”對應的 節點’且 “Systemlnfo” 為 “protocol” 、 “sysLog” 及 ❹“sysUserName”等節點的父節點。“protocol”標籤包含 “autoScan” 、 “upnp” 、 “igmpSnp” 、 “igmpMode” 、 macFilterPolicy”、“encodePassword”及“enetwan”的屬性’相 應地’驅動程式 34 會建立 “autoScan,,、“upnp”、“igmpSnp”、 “igmpMode”、“macFilterPolicy”、“encodePassword” 及 “enetwan”等節點作為“protoc〇i”節點的子節點,且每個屬性 對應的節點中包含其屬性值。同理,驅動程式34也會建立 ❹‘sysLog’’及“sysUserName”節點的子節點,以及上述配置樹的 其它節點。 在配置樹Tj建立之後’其它的程式就可以讀取或修改 配置樹Tj的節點内的配置參數值。請參照圖8,當電子系統 200内的程式需要修改配置樹中的特定節點(以下稱為目標 節點)時,請求執行應用程式介面3〇中用來修改配置樹的函 式(步驟800)。其中上述請求中包含對應驅動程式34之裝置 檔案36的名稱、新的配置參數值及其它資料。舉例來說, 執行PPP的程式或動態主機組態協定(Dynamic Host 13 201007475 • Configuration Protocol,簡稱 DHCP)的程式從 WAN 取得電 子系統200的新的IP位址作為新的配置參數值,隨後更新 * 配置樹Tj中用來記錄電子系統200的IP位址的目標節點中 • 的IP位址。應用程式可以在步驟800的上述請求中指明上 述目標節點的名稱及從配置樹Tj至上述目標節點的路徑, 其中上述路徑包含目標節點的父節點及祖先節點的名稱。 上述函式回應上述程式的請求,透過電子系統200之作 業系統的系統呼叫將上述請求中的檔名、目標節點名稱及新 ❿的配置參數值傳遞給内核程式13(步驟802)。内核程式13 根據上述檔名取得裝置檔案36中的設備主代碼N1,再根據 設備主代碼N1取得驅動程式34,並將上述新的配置參數值 交給驅動程式34,使驅動程式34更新配置樹Tj中目標節點 内的配置參數值(步驟804)。驅動程式34取得配置樹Tj中 的上述目標節點(步驟806),並以上述新的配置參數值來更 新目標節點内的配置參數值(步驟808)。步驟806中,驅動 ©程式34可以根據上述目標節點的路徑以取得上述目標節 點,或搜尋配置樹Tj以取得。 在圖6中配置樹Tj的例子上,電子系統200之IP位址 是從區塊62中的“6扒巧1,,標籤的&amp;(!(1代88=“192.168.1.1,,的 屬性取得的。在上述IP位址更新後,電子系統200中的防 火牆程式可以從配置樹Tj讀取電子系統200的IP位址,並 根據上述節點中新的IP位址以執行其任務。電子系統200 的網路位址變換(network address translation,NAT )程式根據 上述節點中新的IP位址以執行NAT。 14 201007475 中的特定r: 的程式需要讀取配置樹 ,稱為目標節點)時,請求執行應用程式介 中用來頃取配置樹的函式(㈣9〇〇)。其中上述請求中 :動程式34之裝置檔案36的名稱及目標節點的名 二:用程式可以在步驟900的上述請求中指明從配置樹 節點的路徑,其_上述路徑包含目標節點的父 即點及祖先郎點的名稱。 上述函式回應上述程式的請求,透過 業系統的系統呼叫將上述請求中的檔名及目標節點的名稱 傳遞給内核程式13(步驟術)。内核程式根據上述樓名Access Memory (RAM); examples of non-volatile memory 210 such as © Electronically Erasable Programmable ROM (EEPROM) or Flash Memory. The non-volatile memory 210 includes the operating system and application of the electronic system 200. The program and data in the non-volatile memory 21〇 can be stored in a compressed form and decompressed to the main memory when it is to be executed or used. Referring to Figure 3, the electronic system 200 can include the memory 100A. Memory • Body 100A can be a virtual memory that can actually be mapped to main memory 23 and/or non-volatile memory 210. The memory 100A includes user space and kernel space. The configuration parameter file 12 has a plurality of configuration parameters of the application i〇c, wherein the configuration parameters are used by at least two programs. In order to achieve the purpose of configuration parameter sharing and synchronization, one of the applications of the electronic system 200 (for example, the application l〇c in FIG. 3) starts the parsing procedure for the configuration parameter file 12, and then, according to the configuration parameter file, via the kernel program 13 The relationship between each configuration parameter in 12 to establish a configuration tree (for example, configuration tree 11d) of each configuration parameter in the configuration parameter file 12 in the kernel 8 201007475 of the memory 100A, all the kernels to use the parameters in the configuration tree Ud Program 13 performs a read or modify. Although the actual = data structure is a tree structure, it is not limited to a data structure such as = Γ ο 10 can be combined with a string (1) heart (four). Application: The L i kernel program 13 reads or modifies the parameters in the configuration tree iid, so as to achieve the shame recording sharing and synchronization (4), please refer to Figure 4. In Figure 4, the electronic system has an application group iq, where packet β contains complex applications A1 to An, where n is a positive integer greater than:. An example of the application A1~An may include the application group of the FIG. 3~(10). The electronic system 200 also has an application interface 3, a system call 32 provided by the kernel program 13, a driver 34, and a device file (device me or device special file) 36 ° application interface 30 includes a library, wherein A function containing a plurality of functions for parsing a configuration parameter file (for example, configuration parameter file 12) 'based on the above analysis result to establish a function corresponding to the configuration tree, φ, and a function for modifying and reading the configuration tree and its parameter values formula. Since the configuration tree is in kernel space, the application interface 30 function can utilize the system call (such as "ioctl") provided by the kernel program 13 to drive the kernel program 13 to actuate the driver 34 to complete the setup or modify configuration. The action of the configuration tree in tree group 38. The configuration tree group 38 contains a complex configuration tree T1~Tm, where m is a positive integer greater than one. For example, configuration tree group 38 includes configuration tree 11d in FIG. Device files are used in Unix, Linux, etc., and similar operating systems. 9 201007475 • To represent specific device drivers and their corresponding executables, for example, stored in /dev, allowing applications to pass standard output/input System Call • To interact with the driver represented by the device profile. In the present embodiment, the file name of the file 36 is set to "xmlconf" and the device file 36 is associated with the device file 36 to configure the tree in the plural. In FIG. 4, the device main code (maj〇r number) N1 in the device slot 36 is a number representing the driver 34, and the device minor code N2 contains the complex number representing the configuration tree T1~Tm. Each device code represents a configuration beta tree. The application in application group 1, the function or driver 34 in application interface 30 can be configured to read and modify a particular configuration tree in configuration tree group 38 through device file 36. The application can open the device file /dev/xmlconf to find the device main code N1, and the device number can be requested to find and utilize the driver 34 through the device number. The driver 34 can find a corresponding specific configuration tree by using a device code, and modify the configuration tree or read and return the configuration parameter value to the application according to the request of the application. Examples of device broadcasts include character special files or character devices and block special files or Mock devices. The character device corresponding to the character device file and the operating system exchange data with the character as the soap level, and the block device and the operating system exchange data in units of larger data blocks. Examples of character devices include modems and telephone communication related devices. Examples of block devices include hard disk drives and optical disk drives. The driver 34 reads the configuration parameter values of one node on the configuration tree each time, so the device file 36 can be a character device file. 201007475 Example: Figure 5 shows an example of a configuration parameter file 12 with a portion of the corresponding configuration tree shown in Figure 6. Configuration parameter file 12a, where the configuration parameter package is included between &lt;ConfigTree&gt; and &lt;/ConfigTree&gt;. &lt;AtmCfg&gt; includes a setting related to an asynchronous transfer mode (abbreviated as ATM) in the middle of &lt;/AtmCfg&gt;. &lt;AtmCfgTd&gt; and &lt;/AtmCfgTd&gt; contain settings regarding the ATM connection type (Link Type), such as &quot;CBR&quot; means to connect at a constant rate. &lt;AtmCfgVcc&gt; and ❹&lt;/AtmCfgVcc&gt; mainly include a persistent virtual circuit (PVC) parameter of the ATM layer. &lt;86 (^£吕&gt; and &lt;/SecCfg&gt; mainly include settings related to network security. There is a Wi_Fi (IEEE 802.11) related setting. &lt;11〇1^匸£8&gt;&lt;; /RouteCfg> Between the main setting of the static routing table of the electronic system 200. The main thing is to do the corresponding (Port Map) settings. Between the setting of the time server parameters, that is, with the simple network time agreement (Simple Network Time Protocol, SNTP) The parameters related to the server. &lt;Voice&gt; and &lt;/Voice&gt; are the settings related to Voice Over Internet Protocol (VoIP). &lt;pppsrv_8__35&gt; and &lt;/pppsrv_8_35&gt There is a related setting when the Point-To-Point Protocol (PPP) is connected to the PPP server. The configuration parameters between &lt;wan_8_35&gt; and &lt;/wan_8_35&gt; are mainly used to establish a wide area network (Wide Area Network) , referred to as WAN) interface, it is closely related to ATM PVC. 11 201007475 The kernel program 13 or application in the electronic system 200 can start the conversion of the configuration parameter file 12a into the configuration tree. For example The kernel program 13 initiates the establishment of the configuration tree when the electronic system 2 is powered on. Alternatively, the application of private Al (where i is a positive integer, and lSi^n) initiates the establishment of the configuration tree. The kernel program 13 executed in the electronic system 200 Or the application programs A1 to An can use the application interface 30 to convert the configuration parameter file 12a into a specific data format' and then hand it to the driver 34 to establish a corresponding configuration tree of the configuration parameter file 12a. § See Figure 7, when the electronic system When the program in 200 needs to establish a configuration tree, the function used to create the configuration tree in the application interface 30 (step 7〇〇) is the name of the device file 36 corresponding to the driver 34 in the above request. The above function responds to the request of the above program to analyze the configuration parameter file 12a to generate a guest structure representing the structure of the configuration parameter file 12a and its configuration parameter values (step 702). The value of the autoScan attribute in the <protocol:^ sign can be The data structure of step 702 is represented by "pr〇t〇c〇l.autoScan=enable". The above function is further transmitted through the system call 32 of the operating system of the electronic system 200. The slot name of the device slot 36, the above data structure and other data are transferred to the kernel program 13 (step 704). The kernel program 13 obtains the device main code N1' in the device file 36 based on the above file name, and then obtains the driver 34 according to the device main code N1, and passes the data structure to the driver 34, so that the driver 34 starts to establish the above data structure correspondingly. The configuration tree (step 706). The driver 34 adds the device minor code N2 as the code of the configuration tree to be established (step 708), and according to the above data structure, establishes the configuration tree Tj corresponding to the configuration parameter file 12a (where j is a positive integer, and step 12 201007475 - Step 710). Fig. 6 shows a schematic diagram of the conversion of the block B1 in the configuration parameter file 12a into a configuration tree. In the block B1, the &lt;SystemInfo&gt; and the &lt;/SystemInfo &gt; tags are named "SystemInfo," and include the tags named "protocol", "sysLog", and "sysUserName". Therefore, the program is in the program. In the case of the request, the driver 34 establishes "nodes corresponding to "SystemInfo", "protocol", "sysLog", and "sysUserName" in the configuration tree corresponding to the configuration parameter file 12a, and "SystemInfo" is "protocol", "sysLog" And the parent node of the node such as "sysUserName". The "protocol" tag contains the attributes "autoScan", "upnp", "igmpSnp", "igmpMode", macFilterPolicy", "encodePassword", and "enetwan" correspondingly. Program 34 will create nodes such as "autoScan,", "upnp", "igmpSnp", "igmpMode", "macFilterPolicy", "encodePassword", and "enetwan" as child nodes of the "protoc〇i" node, and each attribute corresponds to The node contains its attribute values. Similarly, driver 34 will also create 'sysLog' and "sysUserName". The child nodes of the node, and the other nodes of the above configuration tree. After the configuration tree Tj is established, the other program can read or modify the configuration parameter values in the node of the configuration tree Tj. Referring to FIG. 8, when the electronic system 200 is inside When the program needs to modify a specific node in the configuration tree (hereinafter referred to as a target node), it requests to execute a function for modifying the configuration tree in the application interface (step 800), wherein the request includes the corresponding driver 34. The name of the device file 36, the new configuration parameter value, and other data. For example, a program that executes a PPP program or a Dynamic Host Configuration Protocol (Dynamic Host 13 201007475 • Configuration Protocol, DHCP for short) obtains the electronic system 200 from the WAN. The new IP address is used as the new configuration parameter value, and then the IP address of the target node in the configuration tree Tj for recording the IP address of the electronic system 200 is updated. The application can specify in the above request in step 800. a name of the target node and a path from the configuration tree Tj to the target node, wherein the path includes a parent node of the target node And the name of the ancestor node. The above function responds to the request of the program, and transmits the file name, the target node name, and the new configuration parameter value in the request to the kernel program 13 through the system call of the operating system of the electronic system 200 (step 802). The kernel program 13 obtains the device main code N1 in the device file 36 according to the above file name, and then obtains the driver 34 according to the device main code N1, and passes the new configuration parameter value to the driver 34, so that the driver 34 updates the configuration tree. The configuration parameter value within the target node in Tj (step 804). The driver 34 retrieves the target node in the configuration tree Tj (step 806) and updates the configuration parameter value in the target node with the new configuration parameter value (step 808). In step 806, the driver © program 34 may obtain the target node according to the path of the target node or search for the configuration tree Tj for acquisition. In the example of the configuration tree Tj in FIG. 6, the IP address of the electronic system 200 is from the "6 1 1 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , After the IP address is updated, the firewall program in the electronic system 200 can read the IP address of the electronic system 200 from the configuration tree Tj and perform its task according to the new IP address in the node. The network address translation (NAT) program of the system 200 performs NAT according to the new IP address in the above node. 14 When the specific r: program in 201007475 needs to read the configuration tree, called the target node) The request execution function ((4) 9〇〇) for the configuration tree in the application medium, wherein the request includes: the name of the device file 36 of the program 34 and the name of the target node 2: the program can be used in step 900 The above request indicates the path from the configuration tree node, and the path includes the name of the parent node and the ancestor point of the target node. The above function responds to the request of the above program, and the file in the above request is sent through the system call of the system. Name and purpose Name of the node to the kernel program 13 (step procedure). According to the kernel program name F

案36中的設備主代碼犯,再根據設備主代碼N1 :付驅動程式34,並將目標節點的名稱交給驅動程式W =動程式34取得配置樹Tj中上述目標節點内的配置參數 (乂· 904)。驅動程式34根據目標節點The device main code in the case 36 is committed, and then according to the device main code N1: the driver 34, and the name of the target node is given to the driver W = the program 34 to obtain the configuration parameters in the target node in the configuration tree Tj (乂· 904). Driver 34 is based on the target node

Tj中的上述目桿節以、一 不稱取付配置树 數值回傳给内二= 將目標節點内的配置參 〇8)。内核程式13再將目標節 ^内的配置參數值回傳給請求讀取的程式(步驟则)。步驟 述目俨'式3 4可以根據上述目標節點的路徑以取得上 呔目私卽點,或搜尋配置樹Tj以取得。 利用上㈣騎構及方法,舒系統· _應用程式 n内錄式13可以共享並同步配置參數。其它的 系:設定程式,設定程式允許 “―,用戶名 = %為admin’’。糸統設定程式提供使用者 15 201007475 •介面讓使用者設定圖6中配置樹的配置參數值。電子系統 200中的每個程式記錄其執行時期相關的事件於記錄檔。電 • 子系統200可以將上述記錄檔發送至外部伺服器供分析之 • 用。電子系統200中的每個程式根據圖6中logLevel節點的 配置參數值以決定記錄於上述記錄檔的事件類別。換言之, logLevel的配置參數值決定電子系統200中的複數程式記錄 事件的詳細程度。“sysUserName”及“logLevel”節點的配置參 數值可以利用上述方法被修改及讀取。 Ο 電子系統200更包含用戶認證程式。系統設定程式提供 使用者介面讓使用者設定可以從遠端存取電子系統200的用 戶的遠端裝置的網路通訊協定(Internet Protocol,簡稱IP)位 址,並記錄於配置參數文件12a中的區塊B3,即&lt;TelnetAcl&gt; 與&lt;/TelnetAcl&gt;之間。區塊B3中的配置參數轉換成配置樹 Tj中的節點後,系統設定程式可以增加、刪除或修改上述節 點中的IP位址。用戶認證程式利用配置樹Tj的上述節點(未 圖示)中的IP位址以容許或拒絕用戶使用的遠端裝置連接至 電子系統200。 本發明提供的方法可以克服現有方法的不足。利用上述 系統結構及方法,電子系統内的應用程式及内核程式可以共 享並同步配置參數。上述方法可以廣泛應用於Linux/Unix 環境下或其它的作業系統環境下的程式開發。 綜上所述,本發明符合發明專利要件,爰依法提出專利 申請。惟,以上所述者僅為本發明之較佳實施例,舉凡熟悉 本案技藝之人士,在爰依本案發明精神所作之等效修飾或變 16 201007475 •化’皆應包含於以下之申請專利範圍内。 【圖式簡單說明】 圖1為配置樹在記憶體中的傳統設置示意圖。 •圖2為電子系統之結構方塊圖。 圖3為配置樹在記憶體中的新設置示意圖。 圖4為上述電子系統的模組示意圖。 圖5顯示配置參數文件的實例示意圖。 圖6顯示配置參數文件中的區塊Bi轉換成配置樹的部分的 ❹示意圖。 圖7顯示電子系統内的配置樹的建立流程圖。 圖8顯示電子系統内的配置樹的修改流程圖。 圖9顯示電子系統内的配置樹中特定節點的讀取流程圖。 【主要元件符號說明】 應用程式 配置參數區塊 設備主代碼 設備次代碼 配置樹 應用程式群組 應用程式 配置樹 配置參數文件 内核程式 應用程式介面 A1 〜An B1 〜B3 N1 N2 T1 〜Tm 10 10a,l〇b,l〇c 11a,lib,He,Hd 12, 12a 13 30 17 201007475 ‘系統呼叫 32 驅動程式 34 ' 裝置檔案 36 • 配置樹群組 38 記憶體 ΙΟΟ,ΙΟΟΑ 電子系統 200 非揮發性記憶體 210 處理器 220 ❿主記憶體 230 通訊單元 240The above-mentioned mast section in Tj is returned to the inner two by the value of the unresolved configuration tree = the configuration parameter in the target node is 8). The kernel program 13 then passes back the configuration parameter values in the target section to the program that requested the reading (step). The step 述 '3 can be obtained according to the path of the target node to obtain the upper private point, or search for the configuration tree Tj. Using the upper (four) riding structure and method, Shu system · _ application n internal recording 13 can share and synchronize configuration parameters. Other system: setting program, setting program allows "-, user name = % is admin"'. The system setting program provides user 15 201007475 • The interface allows the user to set the configuration parameter value of the configuration tree in Fig. 6. Electronic system 200 Each program records its event-related events in the log file. The subsystem 200 can send the above log files to an external server for analysis. Each program in the electronic system 200 is based on the logLevel in Figure 6. The configuration parameter value of the node determines the event category recorded in the above log file. In other words, the logLevel configuration parameter value determines the level of detail of the complex program recorded event in the electronic system 200. The configuration parameter values of the "sysUserName" and "logLevel" nodes may be The above method is modified and read. Ο The electronic system 200 further includes a user authentication program. The system setting program provides a user interface for the user to set a network protocol for the remote device of the user who can access the electronic system 200 from the remote end. (Internet Protocol, IP for short) address, and recorded in block B3 in the configuration parameter file 12a, &lt;TelnetAcl&gt; and &lt;/TelnetAcl&gt; After the configuration parameters in block B3 are converted into nodes in the configuration tree Tj, the system setting program can add, delete or modify the IP address in the above node. User authentication program The IP address in the above-mentioned node (not shown) of the configuration tree Tj is used to allow or deny the remote device used by the user to connect to the electronic system 200. The method provided by the present invention can overcome the deficiencies of the prior methods. Method, the application program and the kernel program in the electronic system can share and synchronize the configuration parameters. The above method can be widely applied to program development under the Linux/Unix environment or other operating system environment. In summary, the invention complies with the invention patent. The above is only a preferred embodiment of the present invention, and those who are familiar with the art of the present invention are equivalent to the modification or modification of the invention according to the spirit of the present invention. It should be included in the scope of the following patent application. [Simple description of the diagram] Figure 1 shows the traditional design of the configuration tree in the memory. Figure 2 is a block diagram of the electronic system. Figure 3 is a schematic diagram of the new configuration of the configuration tree in the memory. Figure 4 is a schematic diagram of the module of the above electronic system. Figure 5 shows an example of a configuration parameter file. 6 shows a schematic diagram of the conversion of the block Bi in the configuration parameter file into a part of the configuration tree. Figure 7 shows a flow chart for establishing a configuration tree in the electronic system. Figure 8 shows a flow chart for modifying the configuration tree in the electronic system. Display flow chart of specific nodes in the configuration tree in the electronic system. [Main component symbol description] Application configuration parameter block device main code device minor code configuration tree application group application configuration tree configuration parameter file kernel program application Program Interface A1 ~ An B1 ~ B3 N1 N2 T1 ~ Tm 10 10a, l〇b, l〇c 11a, lib, He, Hd 12, 12a 13 30 17 201007475 'System Call 32 Driver 34' Device File 36 • Configuration Tree group 38 memory ΙΟΟ, ΙΟΟΑ electronic system 200 non-volatile memory 210 processor 220 ❿ main memory 230 communication unit 240

Claims (1)

201007475 •十、申請專利範圍 1·一種可共享應用程式配置參數的電子系統,包括: 一記憶體,包括用戶空間及内核空間,該用户空間存儲複 數應用程式及文件,該文件記錄複數配置參數,其中上述 配置參數由第一應用程式使用; :介面模組,用以回應上述第一應用程式之請求以解析包 含上述配置參數的上述文件,以及取得上述配置參數;以 及 ® -裝置驅動程式’建立上述配置參數的㈣結構於上述記 It體的内核空間’讓上述複數應用程式從上述資料結構存 取上述配置參數,以執行上述電子系統的不同功能。 如u利第:項所述之可共享應用程式配置參數的 電子系統,進一步包含不同於上述第一應用程式的第二應 T程式’上述第二應⑽式經由上述裝置驅動程式從上述 資料結構存取上述第—應用程式的上述配置參數。 粵如μ專·圍第!項料之可共享應餘式配置參數的 I子系統’進—步包含作業系統的内核程式,上述内核程 ^由上述裝置驅動程式從上述#料結構存取上述第一 應用程式的上述配置參數。 ζ =專利㈣第!項所述之可共享應用程式配置參數的 ;,的對象,使上述装置驅動程式所控制= h Ϊ Γ子系統提供的系統呼叫以及上述裝置檔案的檔 ?子取’上述裝置驅動程式所控制的對象為包含上述 19 201007475 •第—應隸式的配置參數的上述倾結構的資料結構集 合。 ·. 5.如中請專利範圍第4項所述之可共享應用程式配置參數的 電子系/统、’其中上述襄置檔案包含設備主代碼及設備次代 ^,上it第應用程式具有配置參數的複數資料結構, 每筆》又備-人代碼用以表示上述複數資料結構的其中一 資料結構。 ❹ 6. 如申請專利範圍第5項所述之可共享應用程式配置參數的 電子純,其中上述配置參數的㈣結構為樹狀結構。 7. 如申請專㈣圍第4項所述之可共享應隸式配置參數的 電子系統,其中上述裝置檔案為字元裝置檔案。 8. 如申請專利範圍第1項所述之可共享應用程式配置參數的 電子系統,其中上述電子系統為網路通訊裝置,且上述配 置參數包含上述網路通訊裝置的位址。 春 9·^申請專利範圍第2項所述之可共享應用程式配置參數的 電子系統,其十上述第-應用程式用以取得上述電子系統 ^網路通訊協定位址,並記錄於上述資料結構中,上述第 =應用程式讀取上述網路通訊協定位址以執行網路 變換。 瓜如申請專利範圍第2項所述之可共享應用程式配置參數 2電子系統,其中上述第—應用程式用以在上述資料結構 =一節點中設定配置參數值,以決定上述電子系統中的 $數程式記錄其相關事件的詳細程度,上述第二應用程式 &quot;買取上述節點的配置參數值以決定記錄於上述記錄槽的 20 201007475 • 事件類別。 .U·如申請專利範圍第2項所述之可共享應用程式配置表數 $電子系統,其中上述第-應用程式於上述資料結構中設 疋可以從遠端存取電子系統的用戶的至少-遠端裝置的 ’周路通。孔位址’上述第二應用程式讀取並根據上述至少一 遠端裝置的網路通訊位址以容許或拒絕上述 裝置連接至電子系統。 通端 12. -種可共享應用程式配置參數的方法,執行於一電子系統 中,上述電子系統包含一應用程式、一介面模組及一裝置 驅動程式,包括: 上述應用程式請求上述介面模組以使用上述應用程式的 配置參數,其中上述應用程式儲存於上述電子系統的記憶 體中的用戶空間,並且上述應用程式的配置參數供上述電 子系統的至少二個應用程式使用; 上述介面模組回應上述應用程式之請求以解析包含上述 φ 應用程式之配置參數的一文件’以及取得上述配置參數; 以及 上述裝置驅動程式建立上述配置參數的資料結構於上述 記憶體中的内核空間,讓上述至少二個應用程式經由上述 裝置驅動程式從上述資料結構共同存取上述配置參數,以 執行上述電子系統的不同功能。 13. 如申明專利範圍第12項所述之可共享應用程式配置參數 的方法,其中上述電子系統包含不同於上述應用程式的第 一應用程式,上述第二應用程式經由上述裝置驅動程式從 21 201007475 上述資料結構存取上述應用程式的上述配置參數。 • I4.如申請專利範圍第12項所述之可共享應用程式配置參數 的方法,其中上述電子系統包含作業系統的内核程式,上 . 述内核程式經由上述裝置驅動程式從上述資料結構存取 上述應用程式的上述配置參數。 15.如申請專利範圍第12項所述之可共享應用程式配置參數 的方法,其中上述電子系統包含一裝置檔案用以表示^述 裝置驅動程式所控制的對象,使上述裝置驅動程式所控制 ® 的對象經由上述電子系統提供的系統呼叫以及上述裝置 槽案的槽名而被存取’上述裝置驅動程式所控制的對象為 包合上述應用程式的配置參數的上述資料結構的資料結 16.如申請專利範圍第15項所述之可共享應用程式配置參數 的方法其中上述裝置槽案包含設備主代碼及設備次代 1若上述應用程式具有配置參數的複數資料結構,每一 φ ⑨備次代碼用以表示上述複數資料結構的其中一 結 。 、 17的如方申法清=第16項所述之可共享應用程式配置參數 18知由巾核置參數的f料結構為樹狀結構。 18. 如申請專利範圍第15 的Π #, L 、所述之可共旱應用程式配置參數 的方法’其t上述裝置檔案為字元裝置槽案。 19. 如申請專利範圍第13項 八 的古、么迷之可共享應用程式配置參數 通嘗:L ΐ應用程式用以取得上述電子系統之網路 協疋位址,並記錄於上述資料結構中,上述第二應用 22 201007475 2。·如,二t二:】T協定位址以執行網路位址變換。 •的方法,其中上、求廡項所述之可共享應用程式配置參數 .,點中設定配置灸:值用:式用以在上述資料結射的-節 =錄其相關事件的詳細程度,上述 ^即點的配置參數值以決定記錄於上述記錄檔的事件類 ❹的方法專^中H13項所述之可共享應用程式配置參數 遠端存取電子系統的用用程式於上述資料結構中設定可以從 位址,上述笫1、戶的至少一遠端裝置的網路通訊 的網路通式讀取並根據上述至少一遠端裝置 至電子系統 MU述至少—遠職置連接 ❹ 23201007475 • X. Patent Application Scope 1. An electronic system that can share application configuration parameters, including: a memory, including user space and kernel space, the user space stores a plurality of applications and files, the file records a plurality of configuration parameters, The configuration parameter is used by the first application; the interface module is configured to respond to the request of the first application to parse the file containing the configuration parameter, and obtain the configuration parameter; and the - device driver 'establishes The (four) structure of the above configuration parameter is such that the kernel space of the above-mentioned It body allows the plurality of applications to access the configuration parameters from the data structure to perform different functions of the electronic system. An electronic system for sharing application configuration parameters as described in the following: further comprising a second application program T different from the first application program, wherein the second application (10) is transmitted from the data structure via the device driver Access the above configuration parameters of the above-mentioned application. Guangdong as μ special · Wai Di! The I subsystem of the item constituting the remaining configuration parameter includes a kernel program of the operating system, and the kernel program is configured by the device driver to access the configuration parameter of the first application from the #material structure . ζ = Patent (4) No.! The object of the shared application configuration parameter, which is controlled by the device driver, is controlled by the device driver, and the system call provided by the subsystem and the file of the device file are controlled by the device driver. The object is a collection of data structures of the above-described declining structure including the configuration parameters of the above-mentioned 19 201007475 • first-acceptance. 5. The electronic system/system of the shareable application configuration parameters mentioned in item 4 of the patent scope, 'where the above file contains the device main code and the device generation ^, the upper application has configuration parameters The plural data structure, each of which is used to indicate one of the data structures of the above plural data structure. ❹ 6. The electronic purity of the shareable application configuration parameters as described in claim 5, wherein the (four) structure of the above configuration parameters is a tree structure. 7. For an electronic system that can share the parameters of the assignment as described in item 4 of the special (4), the device file is a character device file. 8. The electronic system as claimed in claim 1, wherein the electronic system is a network communication device, and the configuration parameter comprises an address of the network communication device. In the electronic system of the shareable application configuration parameter described in the second paragraph of the patent application, the tenth application-application is used to obtain the above-mentioned electronic system network communication protocol address, and recorded in the above data structure. The above-mentioned first application reads the above network protocol address to perform network transformation. The unaware application configuration parameter 2 electronic system described in claim 2, wherein the first application is configured to set a configuration parameter value in the data structure=one node to determine the $ in the electronic system. The number program records the level of detail of its related events, and the second application &quot; buys the configuration parameter values of the above nodes to determine the 20 201007475 event category recorded in the above slot. .U. The shareable application configuration table number electronic system as described in claim 2, wherein the first application is located in the data structure at least for a user who can access the electronic system from a remote end - The peripheral device of the remote device. The hole address 'the second application reads and according to the network communication address of the at least one remote device to permit or deny the device to connect to the electronic system. The method for sharing the application configuration parameters is implemented in an electronic system, the electronic system comprising an application, an interface module and a device driver, the method comprising: the application requesting the interface module Using the configuration parameters of the application, wherein the application is stored in a user space in the memory of the electronic system, and the configuration parameters of the application are used by at least two applications of the electronic system; the interface module responds The request of the application is to parse a file containing the configuration parameters of the φ application and obtain the configuration parameter; and the device driver establishes the configuration parameter data structure in the kernel space in the memory, so that the at least two The application program accesses the configuration parameters from the data structure via the device driver to perform different functions of the electronic system. 13. The method for sharing application configuration parameters according to claim 12, wherein the electronic system comprises a first application different from the application, and the second application is sent from the device driver by 21 201007475 The above data structure accesses the above configuration parameters of the application. The method of claim 4, wherein the electronic system includes a kernel program of the operating system, and the kernel program accesses the data structure from the data structure via the device driver. The above configuration parameters of the application. 15. The method of claim 12, wherein the electronic system includes a device file for indicating an object controlled by the device driver to be controlled by the device driver. The object is accessed via the system call provided by the electronic system and the slot name of the device slot. The object controlled by the device driver is the data structure of the data structure including the configuration parameters of the application. The method for applying the shared application configuration parameter described in claim 15 wherein the device slot includes a device main code and a device generation 1 if the application has a configuration parameter, and each φ 9 backup code is used. To represent one of the above complex data structures. The shared application configuration parameter of the 17th, such as the party Shen Faqing = the 16th item, knows that the material structure of the parameter of the towel is a tree structure. 18. For example, the method of applying the patent scope 15 Π #, L, the method for configuring the parameters of the co-aggregate application, and the device file is the character device slot. 19. For example, the application file configuration parameter of the 13th item of the patent application is: L ΐ application to obtain the network protocol address of the above electronic system, and recorded in the above data structure. The second application 22 201007475 2 described above. For example, two t2:] T protocol address to perform network address translation. • The method, in which the shared application configuration parameters described in the above and below items are set. The point is set to configure the moxibustion: the value is used to: in the above-mentioned data bursting - section = record the details of the relevant event, The above-mentioned point-to-point configuration parameter value is used to determine the event class recorded in the above-mentioned log file, and the shared application configuration parameter remote access electronic system application described in item H13 is in the above data structure. The setting may be read from the address, the network communication of the network communication of the at least one remote device of the household, and the at least one remote device to the electronic system MU according to the at least one remote server connection.
TW97131181A 2008-08-15 2008-08-15 Electronic system and method thereof capable of sharing application configurations TWI428765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97131181A TWI428765B (en) 2008-08-15 2008-08-15 Electronic system and method thereof capable of sharing application configurations

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97131181A TWI428765B (en) 2008-08-15 2008-08-15 Electronic system and method thereof capable of sharing application configurations

Publications (2)

Publication Number Publication Date
TW201007475A true TW201007475A (en) 2010-02-16
TWI428765B TWI428765B (en) 2014-03-01

Family

ID=44827066

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97131181A TWI428765B (en) 2008-08-15 2008-08-15 Electronic system and method thereof capable of sharing application configurations

Country Status (1)

Country Link
TW (1) TWI428765B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI509520B (en) * 2012-12-21 2015-11-21 Nec Solution Innovators Ltd A terminal device, a data linkage method, and a computer-readable recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI509520B (en) * 2012-12-21 2015-11-21 Nec Solution Innovators Ltd A terminal device, a data linkage method, and a computer-readable recording medium

Also Published As

Publication number Publication date
TWI428765B (en) 2014-03-01

Similar Documents

Publication Publication Date Title
US8375398B2 (en) Method and system for sharing configuration parameters among processes of an electronic device
BRPI0714116A2 (en) mapping discovered items by connection and universal execution in an smb location
WO2017049945A1 (en) Accelerator virtualization method and apparatus, and centralized resource manager
JP5826399B2 (en) Method and apparatus for controlling contents of digital living network alliance
TWI735429B (en) Authentication method, device, system and electronic equipment for client login server end
Petrolo et al. The design of the gateway for the cloud of things
JP2019527988A (en) Packet transmission
EP2266290B1 (en) Device and method for sharing files
CN109361550A (en) The method, device and equipment of network equipments configuration management
JP2009503923A (en) Method for remote access to a local area network and switching node for performing the method
US9323940B2 (en) Rights control method and apparatus for digital living network alliance
WO2021017849A1 (en) Method for implementing 5g user registration, network element apparatus, and storage medium
KR20010092525A (en) Interfacing apparatus controling a non ip-based network device to ip-based network access and method therefor
JP2014510333A (en) Method for sharing data in a home network and apparatus for implementing the method
WO2013152677A1 (en) Resource sharing method and device
WO2015074391A1 (en) Method and apparatus for mounting peripheral components on multiple virtual machines
WO2013120315A1 (en) Method for processing domain name information, wireless router, and client
KR20160103110A (en) Network element data access method and apparatus, and network management system
BRPI1012136B1 (en) DEVICE CAPACITY INVOKING METHOD, WIDGET DEVICE, SERVER
TW201007475A (en) Electronic system and method thereof capable of sharing application configurations
Yiqin et al. Home networking and control based on upnp: An implementation
JP5870804B2 (en) Communication control system, communication control method, and communication control program
JP2012524951A (en) Home network, device information sharing method between home networks, and home network system
CN106533849B (en) System and method for unified access of router to device name
WO2024114645A1 (en) Instantiation method for virtualization network function (vnf), and apparatus