LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-05-2015, 12:56 PM   #1
Upendra Pratap Singh
Member
 
Registered: May 2011
Location: India
Distribution: Ubuntu 14.04
Posts: 110
Blog Entries: 4

Rep: Reputation: 0
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?
 
Old 09-06-2015, 10:25 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,970
Blog Entries: 4

Rep: Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027
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.
 
Old 09-07-2015, 01:46 AM   #3
Upendra Pratap Singh
Member
 
Registered: May 2011
Location: India
Distribution: Ubuntu 14.04
Posts: 110

Original Poster
Blog Entries: 4

Rep: Reputation: 0
Quote:
Originally Posted by sundialsvcs View Post
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
 
Old 09-08-2015, 09:50 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,961
Blog Entries: 46

Rep: Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188
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!
 
Old 09-09-2015, 11:55 AM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Upendra Pratap Singh View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Hardware Component & devices monitor with OpenNMs jitenderana Linux - Software 1 03-16-2012 09:45 AM
Serial communication and hardware flow control CoderMan Programming 1 03-26-2009 04:26 AM
Proposed Hardware Component Driver Checklist for Linux Newbie tarahmarie Linux - Hardware 2 07-03-2008 04:09 PM
What hardware component determines refresh rate in laptop? General Linux - Laptop and Netbook 5 03-07-2007 02:56 PM

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

All times are GMT -5. The time now is 09:36 AM.

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