cregit-Linux how code gets into the kernel

Release 4.7 drivers/staging/wilc1000/wilc_msgqueue.h

#ifndef __WILC_MSG_QUEUE_H__

#define __WILC_MSG_QUEUE_H__

#include <linux/semaphore.h>
#include <linux/list.h>


struct message {
	
void *buf;
	
u32 len;
	
struct list_head list;
};


struct message_queue {
	
struct semaphore sem;
	
spinlock_t lock;
	
bool exiting;
	
u32 recv_count;
	
struct list_head msg_list;
};

int wilc_mq_create(struct message_queue *mq);
int wilc_mq_send(struct message_queue *mq,
		 const void *send_buf, u32 send_buf_size);
int wilc_mq_recv(struct message_queue *mq,
		 void *recv_buf, u32 recv_buf_size, u32 *recv_len);
int wilc_mq_destroy(struct message_queue *mq);

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
chaehyun limchaehyun lim7065.42%2793.10%
johnny kimjohnny kim3532.71%13.45%
dean leedean lee21.87%13.45%
Total107100.00%29100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}