kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: andreabenelli77@gmail.com (Andrea Benelli)
To: kernelnewbies@lists.kernelnewbies.org
Subject: What is the point of this function?
Date: Tue, 21 Jun 2016 00:48:28 +0200	[thread overview]
Message-ID: <CAPQXMLFvDqbRKfpyqy+yfG8HUyFra3JuX3bmMqhgtV-OTw_Umg@mail.gmail.com> (raw)
In-Reply-To: <CAPQXMLHzXhKzZyZx_0YWZMkr6MdPNDdd38Fh=vabGcRMcKXXjw@mail.gmail.com>

Hello, i was looking at the *linux/sched.h* (kernel version 4.6.2) source
code and i found this function at line *1174*:

static inline bool cpus_share_cache(int this_cpu, int that_cpu)
{
        return true;
}

I'm not able to understand the utility of a function that just return a
true value.
i've noticed that there are a lot of functions like this (function that
just return a constant).

so...why?
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160621/5be09bcd/attachment.html 

       reply	other threads:[~2016-06-20 22:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAPQXMLHzXhKzZyZx_0YWZMkr6MdPNDdd38Fh=vabGcRMcKXXjw@mail.gmail.com>
2016-06-20 22:48 ` Andrea Benelli [this message]
2016-06-21  2:31   ` What is the point of this function? Nathan Williams
2016-06-21 11:56     ` Andrea Benelli
2016-06-22 13:08       ` Daniel.
2016-06-23  7:58         ` Andrea Benelli

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=CAPQXMLFvDqbRKfpyqy+yfG8HUyFra3JuX3bmMqhgtV-OTw_Umg@mail.gmail.com \
    --to=andreabenelli77@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /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;
as well as URLs for NNTP newsgroup(s).