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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-05-2015, 12:56 PM
|
#1
|
Member
Registered: May 2011
Location: India
Distribution: Ubuntu 14.04
Posts: 110
Rep:
|
communication between kernel and hardware component
We know that applications interact with the kernel through system calls.
How is the communication between kernel and the hardware proceeded? Are system calls involved there also?
|
|
|
09-06-2015, 10:25 PM
|
#2
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,970
|
No. Device drivers run in "ring zero," i.e. fully privileged to access the hardware directly. They are the first to receive actual hardware interrupts, and they directly manipulate the device control hardware in the associated interfaces. Device drivers are "part of the kernel."
A "system call" is a mechanism for transferring control from "user-land" to the kernel, in a way that is opaque to the user-land program that is making the call.
|
|
|
09-07-2015, 01:46 AM
|
#3
|
Member
Registered: May 2011
Location: India
Distribution: Ubuntu 14.04
Posts: 110
Original Poster
Rep:
|
Quote:
Originally Posted by sundialsvcs
No. Device drivers run in "ring zero," i.e. fully privileged to access the hardware directly. They are the first to receive actual hardware interrupts, and they directly manipulate the device control hardware in the associated interfaces. Device drivers are "part of the kernel."
A "system call" is a mechanism for transferring control from "user-land" to the kernel, in a way that is opaque to the user-land program that is making the call.
|
Thank you for your help.
what is an efficient way to categorize 'user-land' and the 'kernel'. Could you please explain the dividing line between the two?
Last edited by Upendra Pratap Singh; 09-07-2015 at 01:47 AM.
Reason: specific question
|
|
|
09-08-2015, 09:50 AM
|
#4
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,961
|
Member response
Hi,
I have suggested in one of your other threads to do some investigative work on your own. Please look at this response: # 11
Here at LQ we have several services that may help you to get answers.
LQ Search can be useful to lead you to potential answers to your query since the chance of someone else having a like issue is very possible. Or the search inquiries may lead you to other information to help solve your problem.
This information was created to help members who need methods to aid in development in using some of the tools available: http://www.linuxquestions.org/questi...#faq_lqwelcome
Hope this helps.
Have fun & enjoy!
|
|
|
09-09-2015, 11:55 AM
|
#5
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
Quote:
Originally Posted by Upendra Pratap Singh
Thank you for your help.
what is an efficient way to categorize 'user-land' and the 'kernel'. Could you please explain the dividing line between the two?
|
The dividing line is pretty clear. If you can compile a program and run it on the command line, it's a user space program. If you have to insmod it into the kernel, and then your functions run "automatically" when devices are attached/detached or user space programs communicate with a character device (/dev/something), then it's in kernel space.
|
|
|
All times are GMT -5. The time now is 09:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|