Solved

CAlling a kernel module from user space

Posted on 2001-07-10
3
202 Views
Last Modified: 2010-04-21
Hi -

I am writing an application for a network driver and want to be able to send custom ethernet packets - i have the
driver source code
- How do I call the transmit function from a user level C program - i believe the driver module is loaded into the kernel -

So I would just need to call the module from user space -
but I have no clue how ...is there a system call to ....
??
Please Helpppp !!!! -- I have points to give !
0
Comment
Question by:sunny447492
3 Comments
 
LVL 3

Accepted Solution

by:
superschlonz earned 50 total points
ID: 6278761
You cannot call functions in a kernel module directly. You have to use a device.
Have a look at libpcap at http://www.tcpdump.org/ it should be what you search for.
0
 
LVL 20

Expert Comment

by:jmcg
ID: 9871595
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: superschlonz {http:#6278761}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Percona cluster member randomly crash 15 544
linux $PWD 2 686
Openwrt vnstat 9 222
Linux: disable vim auto-comment 7 155
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question