return msg_buildid(id,msq->q_perm.seq); 
return msq->q_id; 
static int newque (key_t key, int msgflg){	int id;	int retval;	struct msg_queue *msq;	msq  = ipc_rcu_alloc(sizeof(*msq));	if (!msq) 		return -ENOMEM;	msq->q_perm.mode = (msgflg & S_IRWXUGO);	msq->q_perm.key = key;	msq->q_perm.security = NULL;	retval = security_msg_queue_alloc(msq);	if (retval) {		ipc_rcu_putref(msq);		return retval;	}	id = ipc_addid(&msg_ids, &msq->q_perm, msg_ctlmni);	if(id == -1) {		security_msg_queue_free(msq);		ipc_rcu_putref(msq);		return -ENOSPC;	}	msq->q_stime = msq->q_rtime = 0;	msq->q_ctime = get_seconds();	msq->q_cbytes = msq->q_qnum = 0;	msq->q_qbytes = msg_ctlmnb;	msq->q_lspid = msq->q_lrpid = 0;	INIT_LIST_HEAD(&msq->q_messages);	INIT_LIST_HEAD(&msq->q_receivers);	INIT_LIST_HEAD(&msq->q_senders);	msg_unlock(msq);	return msg_buildid(id,msq->q_perm.seq);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/19b4946ca9d1e35d4c641dcebe27378de34f3ddd/msg.c/clean/ipc/msg.c