Kernel space sockets

2005-03-18 Thread Josef E. Galea
Hi, I'm trying to implement a UDP server in a kernel module. So far I have created the struct socket using sock_create_kern(), and used sock->ops->bind() on it. Now how do I send UDP datagrams? I looked at some code and found the function sock->ops->sendmsg() but I can't figure out where to put

Re: Kernel space sockets

2005-03-18 Thread Josef E. Galea
Juergen Quade wrote: On Fri, Mar 18, 2005 at 02:53:31PM +0100, Josef E. Galea wrote: Hi, I'm trying to implement a UDP server in a kernel module. So far I have created the struct socket using sock_create_kern(), and used sock->ops->bind() on it. Now how do I send UDP datagrams?

init process and task_struct

2005-02-25 Thread Josef E. Galea
Hi, Does the init process have a task_struct associated with it, and if yes where is this structure created? Thanks Josef - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordom

System call problem

2005-02-26 Thread Josef E. Galea
Hi, I am implemeting a new system call for a project I'm working on. I added the system call to the file arch/i386/kernel/process.c and added the relevant entries in the files arch/i386/entry.S and include/asm-i386/unistd.h. My system call is made up of only two lines, a printk statement, and a

Re: System call problem

2005-02-26 Thread Josef E. Galea
Steven Rostedt wrote: On Sat, 2005-02-26 at 15:17 +0100, Josef E. Galea wrote: I compiled and booted the kernel and am trying to build a user space application that uses my system call, however gcc is returning this error: /tmp/cc4zgzUr.o(.text+0x4e): In functiono `get_rmt_paging': : unde

Sending IP datagrams

2005-03-07 Thread Josef E. Galea
Hi, Is there any way, other than socket buffers, to send IP datagrams from a kernel module? If yes, can you please point me to some good tutorial or sample code Thanks Josef Galea - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECT

Re: Sending IP datagrams

2005-03-07 Thread Josef E. Galea
Scott Feldman wrote: On Mar 7, 2005, at 3:48 PM, Josef E. Galea wrote: Hi, Is there any way, other than socket buffers, to send IP datagrams from a kernel module? If yes, can you please point me to some good tutorial or sample code See net/core/pktgen.c for an example. -scott AFAIK that module

EXPORT_SYMBOL question

2005-03-28 Thread Josef E. Galea
Hi, I have 2 modules. The first one uses EXPORT_SYMBOL to make some function available to other modules. These prototypes for these functions were also put in a header file. Now the second module uses the functions the functions defined in the first module by and includes the afore mentioned he

Re: EXPORT_SYMBOL question

2005-03-28 Thread Josef E. Galea
Sam Ravnborg wrote: On Mon, Mar 28, 2005 at 01:10:35PM +0200, Josef E. Galea wrote: Hi, I have 2 modules. The first one uses EXPORT_SYMBOL to make some function available to other modules. These prototypes for these functions were also put in a header file. Now the second module uses the

Linux virtual memory manager

2005-03-31 Thread Josef E. Galea
Hi, Can someone point me to a document explaining the differences between the 2.4 and the 2.6 virtual memory manager. Particularly I am looking for the function/s that replaces the try_to_swap_out() in the 2.6.x series of kernels. Thanks Josef - To unsubscribe from this list: send the line "uns