/* Set up the sequence range to use for the ipc identifier range (limited below IPCMNI) then initialise the ids idr.  */
void ipc_init_ids(struct ipc_ids *ids)
/* Set up the sequence range to use for the ipc identifier range (limited below IPCMNI) then initialise the ids idr.  */
void ipc_init_ids(struct ipc_ids *ids)
{
	init_rwsem(&ids->rw_mutex);
	ids->in_use = 0;
	ids->seq = 0;
	{
		int seq_limit = INT_MAX/SEQ_MULTIPLIER;
		if (seq_limit > USHORT_MAX)
			ids->seq_max = USHORT_MAX;
		 else
		 	ids->seq_max = seq_limit;
	}
	idr_init(&ids->ipcs_idr);
}