linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Operation not permitted / pthread_setschedparam
@ 2014-09-30 10:40 Armin Steinhoff
  2014-09-30 11:44 ` Harry van Haaren
  2014-09-30 23:09 ` Thomas Gleixner
  0 siblings, 2 replies; 27+ messages in thread
From: Armin Steinhoff @ 2014-09-30 10:40 UTC (permalink / raw)
  To: rt-users


Hi,

a "pthread_setschedparam" call of the code below terminates with an
errno == 1  ... means "Operation not permitted"

    instance_l.fStopThread = FALSE;
    if (pthread_create(&instance_l.threadId, NULL, eventThread,
(void*)&instance_l) != 0)
        goto Exit;

    schedParam.__sched_priority = KERNEL_EVENT_THREAD_PRIORITY;
    if (pthread_setschedparam(instance_l.threadId, SCHED_FIFO,
&schedParam) != 0)
    {
        DEBUG_LVL_ERROR_TRACE("%s(): couldn't set thread scheduling
parameters! %d\n", __func__, errno);
    }

I'm using a PREEMPT_RT kernel 3.4.0-rc7-rt7-2.16  for SuSE 12.2
Milestone 2 (3.4.11-2.16).

KERNEL_EVENT_THREAD_PRIORITY is 55!

How to solve that problem ?

Best Regards

--Armin




^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2014-10-11 10:05 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-30 10:40 Operation not permitted / pthread_setschedparam Armin Steinhoff
2014-09-30 11:44 ` Harry van Haaren
2014-09-30 12:32   ` Armin Steinhoff
2014-09-30 17:22     ` Armin Steinhoff
2014-09-30 23:09 ` Thomas Gleixner
2014-10-01  7:27   ` Armin Steinhoff
2014-10-01  7:49     ` Patrik Lundquist
2014-10-02  8:02       ` Armin Steinhoff
2014-10-04 10:49         ` Carsten Emde
2014-10-04 12:36           ` Armin Steinhoff
2014-10-04 12:50             ` Armin Steinhoff
2014-10-04 23:56             ` Thomas Gleixner
2014-10-05 11:07               ` Armin Steinhoff
2014-10-05 11:47               ` Armin Steinhoff
2014-10-05 14:34               ` Armin Steinhoff
     [not found]               ` <54312C88.8060609@steinhoff.de>
2014-10-05 20:54                 ` Thomas Gleixner
2014-10-06  8:03                   ` Armin Steinhoff
2014-10-06 13:34                   ` Armin Steinhoff
2014-10-07  1:33                     ` Thomas Gleixner
2014-10-07  7:57                       ` Armin Steinhoff
2014-10-09  8:35                       ` Operation not permitted / pthread_setschedparam / EOD Armin Steinhoff
2014-10-09  9:41                         ` Pavel Vasilyev
2014-10-09 12:22                           ` Crowd Funding ? Armin Steinhoff
2014-10-09 21:59                             ` Richard Weinberger
2014-10-10 12:14                               ` Armin Steinhoff
2014-10-11 10:04                                 ` Armin Steinhoff
2014-10-05 10:13             ` Operation not permitted / pthread_setschedparam Armin Steinhoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).