Click here to learn
about this Sponsor:
Home  |  News  |  Articles  |  Polls  |  Forum

Keywords: Match:
Using the Linux proc filesystem in embedded systems
by Nicholas McGuire (Mar. 27, 2003)

The following is a brief introduction and overview to Nicholas McGuire's technical paper on using the Linux proc filesystem in embedded systems. A link from which you can download the complete 18-page paper (PDF file) is available at the bottom . . .


Introduction and overview

The proc file system is a well established and widely used interface in the Linux kernel. Since the late 0.99.X releases of the Linux kernel, the proc file system has been included in the official kernel releases and has been used in many Linux systems. Its virtual file system interface allows both the inspection of kernel internal data structures and the manipulation of these data structures without requiring additional non-volatile memory.

Although the initial uses of proc focused primarily on network issues, additional applications quickly began using proc files in order to simplify administrative and debug tasks. In the early releases, the proc API was fairly complex; but as of Linux kernel 2.4.X, the interface has become much more user-friendly.

The main features of the proc file system are . . .
  • Simple API
  • Direct access to kernel internals
  • Simple access via file system-abstraction
  • POSIX compliant open/ read/ write/ close interface
  • Kernel level security setting on a file-scope
Although the proc Interface is generally used in desktop and server systems, the focus of this article is on using the proc file system interface in Linux-based embedded and real-time systems, controlling of real-time tasks via proc interfaces, and other ways these systems can benefit from implementing dedicated, appliance-specific, proc interfaces.

In embedded systems with tight resource constraints, small file system footprint is a key issue, as is the requirement for run-time optimization. In such systems, proc file system and related sysctl functions can be used to provide kernel related administrative information via proc, as well as resource-optimized control interfaces, can substantially improve embedded system performance. A further, often ignored, aspect is that the proc and sysctl interfaces allow very precise tuning of access permissions, both increasing the security of the embedded system's administrative interfaces and improving diagnostic precision, which is essential for efficient error detection and analysis.

Key features of the proc interface that are particularly useful for embedded systems are . . .
  • Performance -- low processing overhead to gain access to kernel internal data structures via proc
  • Highly configurable interface -- enabling a "human readable" window into kernel internals
  • Runtime monitoring -- precise monitoring of system status and resources
  • Security -- well tunable access control based on per-file file-operations and kernel capabilities
This work is part of an on-going GPL project for Keymile AG (Vienna, Austria), where the proc interface is being applied to a series of embedded Linux based high-bandwidth Internet access devices. An associated GPL project which has the objective of developing a proc-based embedded utility set is available here. The project is also available via cvs, cvs -d :pserver:anoncvsopentech.at:/home/gpl login (password: anoncvs), cvs -d :pserver:anoncvsopentech.at:/home/gpl co proc_utils. Feedback to the author is always appreciated.


Read the complete article here . . .


The Linux Proc File System for Embedded Systems
Concepts and programming



(260KB PDF download)




Related stories:

(Click here for further information)


7 Advantages of D2D Backup
For decades, tape has been the backup medium of choice. But, now, disk-to-disk (D2D) backup is gaining in favor. Learn why you should make the move in this whitepaper.

4 Legal Reasons to Control Internet Access
The Internet is obviously a valuable resource for many organizations. However, many are exposed to legal liability concerns because they fail to control Internet access. Learn if you're safe in this white paper.

Rapidly Resolve J2EE Application Problems
Whether you are in the process of building J2EE applications or have J2EE applications already running in production, you must ensure that they deliver the expected ROI. Learn how in this white paper.

Load Testing 2.0 for Web 2.0
There are many unknowns in stress testing Web 2.0 applications. Find out how to test the performance of Web 2.0 in this white paper.

Build Better Games Online
For the game infrastructure providers, life is complex. Making money from games has become more complicated. Why? Find out in this white paper.

Building a Virtual Infrastructure from Servers to Storage
This white paper discusses the virtual storage solutions that reduce cost, increase storage utilization, and address the challenges of backing up and restoring Server environments.

Gaining Faster Wireless Connections with WiMAX
Welcome to what is quickly becoming the hyperconnected world where anything that would benefit from being connected to the network will be connected. Learn more in this white paper.

Is Your Desktop a Security Threat?
The new wave of sophisticated crimeware not only targets specific companies, but also targets desktops and laptops as backdoor entryways into those business’ operations and resources. Learn how to stay safe in this white paper.

Increasing SAN Reliability by 100 Percent
Storage area networks (SAN) are a strong part of storage plans. Learn how to increase your reliability and uptime by 100 percent in this case study.

 


Got a HOT tip?   please tell us!
Free weekly newsletter
Enter your email...
Click here for a profile of each sponsor:
PLATINUM SPONSORS
GOLD SPONSORS
(Become a sponsor)

ADVERTISEMENT
(Advertise here)

Check out the latest Linux powered...

mobile phones!

other cool
gadgets



BREAKING NEWS

• Linux video camera geo-tags, writes to SATA drives
• Garmin Nav devices run Gnome Linux
• Ten LiMo phones this month?
• It's a Yankee Doodle Linux phone
• Wind River to host "Developer Day"
• Dev boards gain Linux support
• 802.11n zooms ahead
• Low-power mini-ITX board runs Linux
• Pico-ITX board bears twins
• Mass-market WiFi router invites Linux hackers
• LiMo phone specialist buys app stack
• "PDA phone" runs Linux
• ST, NXP spin phone chip JV
• Military-grade USB key supports Linux
• USB Linux systems expand


Most popular stories -- past 30 days:
• World's cheapest Linux-based laptop?
• Ubuntu ported to a PDA
• 64-way chip gains Linux IDE, dev cards, design wins
• Embedded PowerPC dev kits come with Linux
• Rapid time-to-evaluation -- a key goal for silicon providers
• Embedded Linux is doomed. DOOOMED!
• Rugged PDA available with Linux
• Netflix Player runs Linux
• Miniature Linux PC targets military apps
• $7 SoC runs Linux
• Android Developer Challenge announces first-round winners
• Dual-core ARM SoC clocks to 1.2GHz


Linux-Watch headlines:
• Microsoft tactics push India toward Linux
• Bell, SuperMicro sued over GPL
• "Business intelligence" software goes GPL
• Will Atom bomb?
• LF Summit videos posted
• Linux gains "embedded" maintainers
• Virtualization on tap in SLES and RHEL upgrades
• Linux gets security black eye
• Verizon chooses Linux "platform of choice"
• Hats off to Fedora 9


Also visit our sister site:


Sign up for LinuxDevices.com's...

news feed

Home  |  News  |  Articles  |  Polls  |  Forum  |  About  |  Contact
 

Ziff Davis Enterprise Home | Contact Us | Advertise | Link to Us | Reprints | Magazine Subscriptions | Newsletters
Tech RSS Feeds | White Papers | ROI Calculators | Tech Podcasts | Tech Video | VARs | Channel News

Baseline | Careers | Channel Insider | CIO Insight | DesktopLinux | DeviceForge | DevSource | eSeminars |
eWEEK | Enterprise Network Security | LinuxDevices | Linux Watch | Microsoft Watch | Mid-market | Networking | PDF Zone |
Publish | Security IT Hub | Strategic Partner | Web Buyer's Guide | Windows for Devices

Developer Shed | Dev Shed | ASP Free | Dev Articles | Dev Hardware | SEO Chat | Tutorialized | Scripts |
Code Walkers | Web Hosters | Dev Mechanic | Dev Archives | igrep

Use of this site is governed by our Terms of Service and Privacy Policy. Except where otherwise specified, the contents of this site are copyright © 1999-2008 Ziff Davis Enterprise Holdings Inc. All Rights Reserved. Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Enterprise is prohibited. Linux is a registered trademark of Linus Torvalds. All other marks are the property of their respective owners.