10-20-2010
Have you ever compiled a kernel before? The work involved is going to be very similar.
Linux already has a dummy network driver which you could derive yours from. In the linux source code, look in drivers/net/dummy.c You might also find drivers/net/loopback.c useful.
First thing to try for would be just printing a message into the dmesg buffer, that's not difficult, I think it's just kprintf... After that you might want to have it create a file under /proc/ somewhere for things to read from; when traffic or whatever happens, and someone's opened that file, they can read from it. That's the proper way to interface since the kernel's not supposed to reach into the guts of userspace and do things without being asked.
Last edited by Corona688; 10-20-2010 at 06:36 PM..
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. AIX
I have an LPAR in a P5 machine which has been setup in an HACMP cluster. The person who set it up allocated the wrong network adapter (en) to the persistent network. For the life of me I cannot find where I can re-assign this adapter. Anyone able to help me as I am tearing my hair out and do not... (1 Reply)
Discussion started by: johnf
1 Replies
2. AIX
hello
i've need to change network adapter on machine H80 aix 4.3.3 hacmp ( ent0 )
what i need to do after the new adapter installed on the machine?
thanks
best regards
ariec (1 Reply)
Discussion started by: ariec
1 Replies
3. AIX
When I configure two VIO Servers, VIOS1 used to ping its gateway, after I configured second VIOS2, VIOS1 cannpt ping its gateway, when I run this command:
entstat -all ent#|grep -i priority
Priority: 5 Active: False
How to make Active to True? (1 Reply)
Discussion started by: rainbow_bean
1 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I am new here - this is my first post.
I have installed Solaris 10 5/09 on my Dell M6300. The install went well, but the Dell's onboard network card is the Broadcom BCM5756ME Gigabit Ethernet - and sadly no Solaris driver exists for it. The Solaris 10 install just jumped by the... (1 Reply)
Discussion started by: soulmerchant
1 Replies
5. Programming
Hi,
I found on linuxgazette.net/93/bhaskaran.html page very useful sample of virtual driver (not connected to real hardware).
I try to compile it with no effect.
So:
I got fresh Ubuntu 9.10 (kernel 2.6.31-14)
My source is saved in networkAdapter.c file in /usr/src/myModules directory.
I... (21 Replies)
Discussion started by: Chrisdot
21 Replies
6. UNIX and Linux Applications
Hi,
I'm a italian student. For my thesis I develop a gateway with protocol 6lowpan.
For that I must access to network interface to develope my personal stack based on standard 802.15.4.
Can you help me? I need an explanation for that. (0 Replies)
Discussion started by: berny88
0 Replies
7. Hardware
Hi,
Does anybody have a "Sun 10-Gigabit Ethernet Adapter installation CD" or driver ixge for Sun 10-Gigabit Ethernet PCI-X adapter? I need it but can't find it anywhere. So if you know where I can download it or purchase it, please let me know. (Already tried Oracle's website, don't have it) ... (5 Replies)
Discussion started by: Lhao
5 Replies
8. Solaris
I installed Solaris 11.1 on a X86 PC. It's working except for one glaring problem : I cannot get a driver attached to the RaLink RT2800 (Wi Fi Adapter). Can someone point me in the direction where " the correct" driver exists, or let me know how I can tell Solaris to attach the device to the... (1 Reply)
Discussion started by: JWH
1 Replies
9. UNIX for Dummies Questions & Answers
I have a RHEL 5 system with a bonded interface configure using only one network port (eth0). So I have config file for ifcfg-bond0 and ifcfg-eth. I'd like to configure eth5 to be the second SLAVE in the bond. My question is, after I modify ifcfg-eth5, can I add eth5 to the bond0 interface without... (1 Reply)
Discussion started by: westmoreland
1 Replies
10. AIX
Hi,
We had a hardware problem with an IBM System p5 server, with AIX 5.2
We restore from a tape the last backup we had, but the server does not boot up as expected.
The server try to mount some directories from a storage, but could not comunicate with them, we check the FC and everything is... (12 Replies)
Discussion started by: trevian3969
12 Replies
LEARN ABOUT FREEBSD
dmesg
DMESG(8) BSD System Manager's Manual DMESG(8)
NAME
dmesg -- display the system message buffer
SYNOPSIS
dmesg [-ac] [-M core [-N system]]
DESCRIPTION
The dmesg utility displays the contents of the system message buffer. If the -M option is not specified, the buffer is read from the cur-
rently running kernel via the sysctl(3) interface. Otherwise, the buffer is read from the specified core file, using the name list from the
specified kernel image (or from the default image).
The options are as follows:
-a Show all data in the message buffer. This includes any syslog records and /dev/console output.
-c Clear the kernel buffer after printing.
-M Extract values associated with the name list from the specified core.
-N If -M is also specified, extract the name list from the specified system instead of the default, which is the kernel image the system
has booted from.
FILES
/var/run/dmesg.boot usually a snapshot of the buffer contents taken soon after file systems are mounted at startup time
SEE ALSO
sysctl(3), syslogd(8)
HISTORY
The dmesg utility appeared in 4.0BSD.
BSD
May 9, 2013 BSD