LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-05-2010, 01:58 AM   #1
sulekha
Member
 
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Rep: Reputation: 36
Question user processes that are given direct access to I/O ports ??


Hi all,

normally all I/O goes through the kernel so that it can schedule the operations and prevent processes from stepping on each other. A few special user processes are allowed to slide around the kernel, usually by being given direct access to I/O ports. X servers are the most common example of this isn't it ?.

can any one give examples for any other processes that are allowed to slide around the kernel ?
 
Old 10-05-2010, 08:16 PM   #2
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
any program that runs as root may use direct i/o access, although they may need suid bit set to 1 for other reasons. Generally most shouldnt need it, but some may, im sure a google search will return a list someone has put together. why do you need it?
 
Old 10-06-2010, 01:13 AM   #3
sulekha
Member
 
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by mf93 View Post
any program that runs as root may use direct i/o access, although they may need suid bit set to 1 for other reasons. Generally most shouldnt need it, but some may, im sure a google search will return a list someone has put together. why do you need it?

well I just going trough this article:- http://tldp.org/HOWTO/Unix-and-Inter...-programs.html

just wanted to get a better understanding
 
Old 10-06-2010, 09:17 PM   #4
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
I doubt there are very many and i dont think the fact they use direct i/o is significant in any case. the most important thing to remember is the i/o ports are protected by the kernel and one must query the kernel through system calls (also known as 'interrupts', which while similar to hardware interrupts are not the exact same)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Academy project: Direct Access for Serial ports and UART registers uprooter Programming 0 11-13-2008 08:55 AM
making the parent direct child processes to pause/sleep and resume execution expeliarmus Programming 1 08-14-2007 05:11 AM
How to access usb ports as non-root user m.harshavardhan Linux - Software 5 07-07-2005 06:19 AM
how can a non-root user access usb ports m.harshavardhan Linux - Software 2 06-29-2005 10:18 AM
Ports and processes fmhermo Linux - General 2 10-18-2003 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration