From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 497B7C49ED7 for ; Fri, 13 Sep 2019 04:52:47 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E9E2D20644 for ; Fri, 13 Sep 2019 04:52:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="Gy5nCxCV"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="KVqIeoVF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9E2D20644 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.2) (envelope-from ) id 1i8dZc-0005r4-K0 for kernelnewbies@archiver.kernel.org; Fri, 13 Sep 2019 00:52:44 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) (envelope-from ) id 1i8dXo-0003iO-6C for kernelnewbies@kernelnewbies.org; Fri, 13 Sep 2019 00:50:52 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id D5DE56A3; Fri, 13 Sep 2019 00:50:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 13 Sep 2019 00:50:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm1; bh=O BnmA3U+x/jFh5XqkjYcof1OtBhYijtBC/OYJYkVO+o=; b=Gy5nCxCVo987I0by5 FjNM/IHfLSo7D39CKVdNDBZJ6rGFupmH84HG6gzNgO35i4UKg5zspxMDwY33+j5d NhHLstogo210FhYPwpQCgGIA1GINacnFEjyCNImcdk8Ee3IBTlTpem2b0w6K300j 9u+MNnZ3T58dujFdNs1fEsUO3nhhZNWtQNe+YXplW6Kor8I4je+M4wQbT8s7oFPx HjVd5rvusRWDtXy7X2+vfrjIAAmEs0ZvHc+rEhGSRcW4bmQNLLgec13OaVjkZoGg Ll5mZQ3j04duqMZg3CG04mfb/WaH6f6VJ0l16DpbBj0QLV+P+MKqbrXu1FTUVWmH NvSww== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=OBnmA3U+x/jFh5XqkjYcof1OtBhYijtBC/OYJYkVO +o=; b=KVqIeoVFlCBgnu/H7PJZcwNa7Pl9LC13EJOMewoD+YTfss4hBNRsKYwfU zHB/vh3eNYh5MsH9a0q7phfhjDT+9eqD8tB9Wt2vaQ09ADftsNU57KwUDT/UjBLi ahh23sAoEvZDUhtmjvcFBv4f5Fq7V/E2mSeIRVcfXj8segZU1ZPawVF+eovK4SRQ JEdlKt0f7gZ3RzXPFhJBGtrmFoh0lwhF9Aeq+FwIweaYLpObSO6kufO5kukasgXN MA8XZxWyE7TN40F2PX77gvF+KyGc4ybA0HqRdTq9y4dPEy+MiVB+vmTNkygBy5JO Uzdy4hbTTfCn8bDjtg9visaFxK0bA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrtdeigdeklecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggugfgjfgesthekredttderudenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecukfhppeekgedrvdeguddrvddttd drgeelnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomhen ucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (unknown [84.241.200.49]) by mail.messagingengine.com (Postfix) with ESMTPA id B0987D6005E; Fri, 13 Sep 2019 00:50:48 -0400 (EDT) Date: Fri, 13 Sep 2019 05:50:45 +0100 From: Greg KH To: Martin Galvan Subject: Re: Setting CPU affinity for current process on kernel module? Message-ID: <20190913045045.GC120223@kroah.com> References: <20190911191657.GA11969@bharath12345-Inspiron-5559> <20190912092618.GA5911@bharath12345-Inspiron-5559> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Cc: Bharath Vedartham , kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org On Thu, Sep 12, 2019 at 11:03:20AM -0300, Martin Galvan wrote: > El jue., 12 sept. 2019 a las 6:26, Bharath Vedartham > () escribi=F3: > > 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