LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-10-2018, 04:26 AM   #16
eldiener
Member
 
Registered: Nov 2006
Distribution: Mepis, CentOS, OpenSuse
Posts: 106

Original Poster
Rep: Reputation: 17

Quote:
Originally Posted by ntubski View Post
Then you should have asked about GNU, not Linux!

Okay, above is not entirely serious, but I do read your original question as rather about the kernel specifically, which now seems to be somewhat misleading. Remember, programmers tend to be a bit... literal minded.
The name of this forum is 'LinuxQuestions'. Rightly or not most people refer to some distribution they are running as Linux, not Gnu/Linux. Linux in this sense refers to the OS, which includes the kernel and supporting software. I understand Stallman's POV, but unfortunately or not the term 'Linux' almost universally refers to the whole shebang and not just the kernel. No one in their right mind would refuse to recognize Stallmaan's, and Gnu software's, contribution to what is popularly called the Linux OS.

I did mention 'kernel events' but I did not mean to imply that a library is something that only runs in kernel-space. I well understand that creating a library to handle kernel events can not slow down normal kernel processing just to provide callbacks for a user-space program. I was just surprised that most libraries created to provice some way of notifying other programs/libraries of kernel events are not based on callbacks but low-level monitoring. I view callbacks much more programmer friendly and a widely accepted practice for event-driven programming from my own experience.
 
Old 08-10-2018, 06:54 AM   #17
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,782

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
Quote:
Originally Posted by eldiener View Post
I was just surprised that most libraries created to provice some way of notifying other programs/libraries of kernel events are not based on callbacks but low-level monitoring.
What programs/libraries are you talking about?
 
Old 08-10-2018, 07:08 AM   #18
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
I still think that is the normal way. introducing kernel-level callbacks will add extra load to the kernel itself, so that won't work.
you cannot run user-space programs by these callbacks, you need to use some tricks to start a user-space program. That's why was created that monitoring (user-space) app.
 
  


Reply

Tags
event



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem operating command with DUAL operating system with ubuntu & windows 7 gne Linux - Newbie 2 02-01-2015 08:12 AM
LXer: The non-operating system operating system LXer Syndicated Linux News 0 06-26-2010 05:42 PM
'Operating system not found' Any operating system installed wont work. TechniSlave Linux - Newbie 55 02-09-2009 11:02 AM
Catching events from system? kalleanka Programming 4 03-02-2004 04:08 PM
Java - Interfaces, inner classes and callbacks for events gwp Programming 3 12-09-2003 04:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:41 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