LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-28-2010, 02:18 PM   #1
bala1486
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Rep: Reputation: 0
doubt regarding system call


Hello All,
My problem is i want to find a fast way to switch from user mode to kernel mode. I read about the sysenter instructions on the net. I want to know a method to find whether my OS uses sysenter or software interrupt method (int 0x80). Can anybody please help me in finding this? Also i would really appreciate if you can suggest any other fast way to change from user to kernel mode... Thank you...

Thanks,
Bala
 
Old 04-28-2010, 03:38 PM   #2
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Rep: Reputation: 43
Quote:
Originally Posted by bala1486 View Post
Hello All,
My problem is i want to find a fast way to switch from user mode to kernel mode. I read about the sysenter instructions on the net. I want to know a method to find whether my OS uses sysenter or software interrupt method (int 0x80). Can anybody please help me in finding this? Also i would really appreciate if you can suggest any other fast way to change from user to kernel mode... Thank you...

Thanks,
Bala
You haven't made it clear where you are coming from. Are you doing assembly programming? Or trying to optimize your Linux system? Or what?

Assembly is a not my forte, but here are some links that might help:

http://stackoverflow.com/questions/1...scall-question
http://stackoverflow.com/questions/2...s-not-sysenter
 
Old 04-29-2010, 12:48 PM   #3
bala1486
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
I am actually trying to find a fast way to transit from user mode to kernel mode. I am implementing my own network protocol for my application that needs to be fast. So i am trying to find a fast mechanism to move from user to kernel mode and came across this SYSENTER option. I am not an assembly programmer. Basically i need to know which method my 'c' code is using and then compare the speed of both the methods and decide on one to use..
 
Old 05-04-2010, 01:31 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by bala1486
I am actually trying to find a fast way to transit from user mode to kernel mode.
See if the following links help :
http://stackoverflow.com/questions/9...and-user-space
and
http://transnum.blogspot.com/2009/01...-vsyscall.html
and
http://www.ukuug.org/events/linux200...vsyscalls.html
 
  


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
OSE system call functions to Linux Sytem Call functions required roshantraj30 Linux - General 0 06-08-2009 03:06 AM
How to call system call from usb driver's code Mr.J Linux - Kernel 4 09-29-2008 04:47 AM
How can i make centos 4.5's system call using vDSO(call *%gs:0x10) instead of int80 tclwp Red Hat 3 08-06-2007 01:07 AM
How do I include my own system call in file system driver kgp Linux - Kernel 3 06-06-2007 11:41 AM
Calling a system call from a system call? Loc_8 Programming 0 09-16-2006 05:21 PM

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

All times are GMT -5. The time now is 05:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration