All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Martin Galvan <omgalvan.86@gmail.com>
Cc: Bharath Vedartham <linux.bhar@gmail.com>,
	kernelnewbies@kernelnewbies.org
Subject: Re: Setting CPU affinity for current process on kernel module?
Date: Fri, 13 Sep 2019 05:50:45 +0100	[thread overview]
Message-ID: <20190913045045.GC120223@kroah.com> (raw)
In-Reply-To: <CAN19L9G-GAeB2ahmSckd6orprAP0E-YykbMF3fg2zMSXMQH_vA@mail.gmail.com>

On Thu, Sep 12, 2019 at 11:03:20AM -0300, Martin Galvan wrote:
> El jue., 12 sept. 2019 a las 6:26, Bharath Vedartham
> (<linux.bhar@gmail.com>) escribió:
> > Just to be clear, What do you mean by current process. Is it the process
> > which is executing the kernel module? That would be a kernel thread I
> > believe or do you want to be able to set the cpu affinity for any
> > process given its PID?
> > And are you looking at setting CPU affinity of kernel threads or user
> > threads.
> 
> Sorry, I wasn't clear: I want to set the affinity of 'current', which
> is a kernel thread.

I really hate to ask, but _why_ do you feel that this is the correct
solution to your problem?  What is the problem you are attempting to
solve by doing this?

thanks,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

  reply	other threads:[~2019-09-13  4:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-11 18:52 Setting CPU affinity for current process on kernel module? Martin Galvan
2019-09-11 19:16 ` Bharath Vedartham
2019-09-11 19:19   ` Martin Galvan
2019-09-12  9:26     ` Bharath Vedartham
2019-09-12 14:03       ` Martin Galvan
2019-09-13  4:50         ` Greg KH [this message]
2019-09-13 12:43           ` Martin Galvan
2019-09-13 12:55             ` Greg KH
2019-09-13 12:56               ` Martin Galvan
2019-09-13 14:13                 ` Greg KH
2019-09-19  5:43                   ` R. Engür Pişirici

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=20190913045045.GC120223@kroah.com \
    --to=greg@kroah.com \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=linux.bhar@gmail.com \
    --cc=omgalvan.86@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.