We now have a (private) writev_port_etc() call. This could be used to avoid
allocating a buffer and copying your data into it, when you have data to send in several chunks (for example, this could be used by BMessage, as suggested by Ingo Weinhold). Code is untested, but should work. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13667 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -229,6 +229,8 @@ extern ssize_t _kern_read_port_etc(port_id port, int32 *msgCode, void *msgBuffe
|
||||
extern status_t _kern_set_port_owner(port_id port, team_id team);
|
||||
extern status_t _kern_write_port_etc(port_id port, int32 msgCode, const void *msgBuffer,
|
||||
size_t bufferSize, uint32 flags, bigtime_t timeout);
|
||||
extern status_t _kern_writev_port_etc(port_id id, int32 msgCode, const iovec *msgVecs,
|
||||
size_t vecCount, size_t bufferSize, uint32 flags, bigtime_t timeout);
|
||||
|
||||
// debug support functions
|
||||
extern void _kern_debugger(const char *message);
|
||||
|
||||
Reference in New Issue
Block a user