Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7799301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:15:50+00:00 2026-06-02T00:15:50+00:00

I am a beginner of kernel programming. I just need some inspiration. I know

  • 0

I am a beginner of kernel programming. I just need some inspiration. I know I can write some functions in the kernel source, rebuild and reboot the kernel. The codes might be some hardware driver controlling the hardware. But how can our user space program use those functions?
I know through syscall the user space program can communicate with kernel space, and the loadable kernel module can also use the functions defined in kernel source code. But how can our user program achieve this?

PS: Now I am learning qemu-kvm. I know qemu is a user space program and kvm is kernel. I just want to figure out how qemu program uses kvm.

I know this is a very basic linux kernel programming problem but it confuses me for a long time. Can someone give me a hint? :>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:15:54+00:00Added an answer on June 2, 2026 at 12:15 am

    You shouldn’t insert a new syscall if you are programming a driver. New syscalls are usually a bad idea, you should have a very good reason to do it, and a hardware driver is not good one. You have to register your driver as char device, block device or network device. I recommend you the “Linux Device Driver” book (which is legally available on the Internet) to see examples of different type of drivers.

    And about your question of how you can call a function in the kernel from userspace… there is no direct way to do it, you can’t link userspace code with the kernel like you do with a library. First, you have to register your function as syscall and then call the syscall with the syscall() function.

    Here is a good howto explaining it: http://www.tldp.org/HOWTO/html_single/Implement-Sys-Call-Linux-2.6-i386/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a beginner in CAD development & want to know some things about
Can we access any physical memory via some kernel code.? Because, i wrote a
I'm a total beginner with OpenCL and I'm trying to make the following kernel
I am a beginner to the Linux Kernel and I am trying to learn
Beginner in python, but been programming for about 5 years now. I suspect I
Beginner to assembly programming for x86. I have a simple asm file which I
A beginner question I am sure, but I have just started working with a
Python beginner here. I've looked around and found similar questions but can't quite cobble
I am a beginner of WCF,I write a simple example of it,and the app.config
Hello i am new to Kernel Programming and i would you to answer me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.