Solved

CAlling a kernel module from user space

Posted on 2001-07-10
3
198 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
inotifywait in linux 2 279
Expect & sshpass package for Solaris 10 x86 15 896
centOS 7 GUI is now showing. 20 1,184
linux $PWD 2 595
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

896 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now