From: Greg KH <gregkh@linuxfoundation.org>
To: Xiang Xiao <xiaoxiang781216@gmail.com>
Cc: alexander.shishkin@linux.intel.com,
andriy.shevchenko@linux.intel.com, linux-kernel@vger.kernel.org,
Xiang Xiao <xiaoxiang@xiaomi.com>
Subject: Re: [v2] lib/string: add memrchr function
Date: Tue, 12 Feb 2019 20:11:33 +0100 [thread overview]
Message-ID: <20190212191133.GA22246@kroah.com> (raw)
In-Reply-To: <1549997683-27986-1-git-send-email-xiaoxiang@xiaomi.com>
On Wed, Feb 13, 2019 at 02:54:43AM +0800, Xiang Xiao wrote:
> Here is the detailed description for memrchr:
>
> void *memrchr(const void *s, int c, size_t n);
>
> The memrchr() function is like the memchr() function, except
> that it searches backward from the end of the n bytes pointed
> to by s instead of forward from the beginning.
>
> The memrchr() functions return a pointer to the matching byte
> or NULL if the character does not occur in the given memory
> area.
>
> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
> ---
> include/linux/string.h | 1 +
> lib/string.c | 21 +++++++++++++++++++++
> 2 files changed, 22 insertions(+)
Don't add new apis without any users.
thanks,
greg k-h
next prev parent reply other threads:[~2019-02-12 19:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-12 18:06 [PATCH] lib/string: add memrchr function Xiang Xiao
2019-02-12 18:34 ` Greg KH
2019-02-12 19:09 ` xiang xiao
2019-02-12 19:15 ` Greg KH
2019-02-12 19:22 ` xiang xiao
2019-02-12 18:54 ` [v2] " Xiang Xiao
2019-02-12 19:11 ` Greg KH [this message]
2019-02-12 19:12 ` Greg KH
2019-02-12 19:19 ` xiang xiao
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=20190212191133.GA22246@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xiaoxiang781216@gmail.com \
--cc=xiaoxiang@xiaomi.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 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).