2009-08-26 03:27:57     Resource temporaliy unavailable(errno 11) error is returned from msgsnd() call

2009-08-26 03:27:57     Resource temporaliy unavailable(errno 11) error is returned from msgsnd() call

sasi kala (INDIA)

Message: 79221   

Hi,

In my application,i'm getting errno 11(EAGAIN) from the call msgsnd().

What would be the possibilities for this error?

Please do the needful.

Note: Free memory in the system is morethan 50 MB

Environmental setup:

custom board running my application on it.

Processor :BF527

Kernal Version : 2.6.18-1.2798.fc6

QuoteReplyEditDelete

2009-08-26 15:54:11     Re: Resource temporaliy unavailable(errno 11) error is returned from msgsnd() call

Mike Frysinger (UNITED STATES)

Message: 79239   

did you read the documentation for the function ?  `man msgsnd`

QuoteReplyEditDelete

2009-08-31 07:49:01     Re: Resource temporaliy unavailable(errno 11) error is returned from msgsnd() call

sasi kala (INDIA)

Message: 79396   

Mike,

I have gone through the man of msgsnd() call and I understood the cause,that the messages were written to queue but reading the same is not happening.This error is thrown at the suitation when the msg queue is about to full and no more message can be placed further more.

So to get the idea about who is writting continuous to the queue I just placed one printf() before the msgsnd() call.In this case no error is thrown.See below the codesnippet

printf("Msg id :%d\n",s32_MsqID);

s32_ReturnValue = msgsnd(s32_MsqID,st_MsgPtr,s32_Msgsize,s32_MsgFlag);

Could you please tell me why this variation in behavior with/without printf()?what can done to avoid this error?

Thanks & Regards,

Sasi

QuoteReplyEditDelete

2009-08-31 14:00:34     Re: Resource temporaliy unavailable(errno 11) error is returned from msgsnd() call

Mike Frysinger (UNITED STATES)

Message: 79417   

sounds like basic computer algorithms to me.  if you slow down the producer and give more time to the consumer to stay ahead ...

  • Created
Was this helpful?

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.