mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Arun Srinivas" <getarunsri@hotmail.com>
To: nickpiggin@yahoo.com.au
Cc: linux-kernel@vger.kernel.org
Subject: sched_setscheduler() and usage issues ....please help
Date: Tue, 29 Mar 2005 08:58:41 +0530	[thread overview]
Message-ID: <BAY10-F472EE1F6A6F80FEA2F5568D9450@phx.gbl> (raw)
In-Reply-To: <42411CAC.5000808@yahoo.com.au>


I am trying to set the SCHED_FIFO  policy for my process.I am using 
sched_setscheduler() function to do this.

I am following the correct syntax and running it as root process.I am using 
the given syntax i.e.,
int sched_setscheduler(pid_t pid, int policy, const struct sched_param *p);
(SCHED_FIFO for the policy and priority in the range of 1 to 99 for p).

But the function returns with an value of -1. I am trying to call this 
function from the user-space.

1) Is this usage correct?
2)How do I read the error code (i.e., text description of what kiind of 
error occurred like for eg., ESRCH,EPERM,EINVAL).

Please help.

thanks
Arun

_________________________________________________________________
Don't know where to look for your life partner? 
http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Trust 
BharatMatrimony.com


  parent reply	other threads:[~2005-03-29  3:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-22 22:09 help needed pls. scheduler(kernel 2.6) + hyperthreaded related questions? Arun Srinivas
2005-03-22 23:16 ` Nick Piggin
2005-03-23  6:07   ` Arun Srinivas
2005-03-23  7:37     ` Nick Piggin
2005-03-23  9:47       ` Arun Srinivas
2005-03-24  0:17         ` Nick Piggin
2005-03-29  3:28       ` Arun Srinivas [this message]
2005-03-29  4:40         ` sched_setscheduler() and usage issues ....please help Steven Rostedt
2005-03-29  4:51           ` Lee Revell
2005-03-29  6:03             ` Jan Engelhardt
2005-03-29 11:35               ` Steven Rostedt
2005-03-29 11:38                 ` Jan Engelhardt
2005-03-29 11:43               ` Arjan van de Ven
2005-03-29 11:46                 ` Jan Engelhardt
2005-03-23  7:07   ` help needed pls. scheduler(kernel 2.6) + hyperthreaded related questions? Jan Engelhardt
2005-03-30 18:09 sched_setscheduler() and usage issues ....please help Arun Srinivas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY10-F472EE1F6A6F80FEA2F5568D9450@phx.gbl \
    --to=getarunsri@hotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®