LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-10-2009, 08:33 AM   #1
lennyk
LQ Newbie
 
Registered: Jan 2009
Posts: 18

Rep: Reputation: 0
vmsplice & splice usage in user space


Hi,

I'm using vmsplice & splice to send memory buffers through a TCP
socket.

I have two issues using these methods:

1) According to the documentation, when using vmsplice with the flag
SPLICE_F_GIFT, you cannot modify the buffer you've "given" the kernel.
Currently, each time I want to send a buffer, I have to allocate a
page-aligned buffer (fill it with data) and send it using vmsplice-
splice. When can I deallocate this buffer? Is it possible to modify
this buffer after the buffer is sent through the socket?

2) The buffer should be page-aligned both in memory and in length, but
most of the time the sent messages (to the TCP socket) - are smaller
than a page size - is it possible to "clear" the pipe from the
remaining buffer?

Thanks!
Lenny.
 
Old 06-14-2009, 08:56 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Moved: This thread is more suitable in <programming> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
Netlink sockets usage to communicate b/w user and kernel space. vinodkr83 Linux - Newbie 1 07-03-2009 03:22 AM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration