RE: send socket message in kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jason,

You have with you sock (struct socket *sock) as you have done recv on it.
So you can use 
	sock_sendmsg(sock,&msg,mesg_len);

HTS,
Aniruddha

 -------------------------------------
| Aniruddha S. Patwardhan             |
| BMC Software India Pvt. Ltd.        |
| Email: aniruddha_patwardhan@bmc.com |
| Phone: +91-20-4035129               |
| www : http://aniruddha.talk.to      |
 -------------------------------------

-----Original Message-----
From: Jason Stredwick [mailto:stredwic@pilot.msu.edu]
Sent: Thursday, April 17, 2003 6:06 PM
To: kernelnewbies@nl.linux.org
Subject: send socket message in kernel


Anyone know how to send a string in kernel space over a connected tcp 
socket who just did a recv and is still in kernel space?  I am trying 
sock->ops->sendmsg and failing.

Jason

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux