mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:32:43 +00:00 
			
		
		
		
	
		
			
				
	
	
	
	
		
			698 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			698 B
		
	
	
	
	
	
	
	
Name
share_buffer_with - allow another process to map a shareable buffer
Synopsis
#include <SharedBuffer.h>
int share_buffer_with(int shared_buffer_id, pid_t peer_pid);
Description
Gives the process with PID peer_pid permission to map the shareable buffer with ID shared_buffer_id.
Return value
On success, returns 0. Otherwise, returns -1 and errno is set.
Errors
- EINVAL:- peer_pidis invalid, or- shared_buffer_idis not a valid ID.
- EPERM: The calling process does not have access to the buffer with- shared_buffer_id.
- ESRCH: No process with PID- peer_pidis found.
