mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Cezary Rojewski <cezary.rojewski@intel.com>
To: "Amadeusz Sławiński" <amadeuszx.slawinski@linux.intel.com>,
	alsa-devel@alsa-project.org, broonie@kernel.org
Cc: <tiwai@suse.com>, <perex@perex.cz>,
	<pierre-louis.bossart@linux.intel.com>, <hdegoede@redhat.com>,
	<lgirdwood@gmail.com>, <kai.vehmanen@linux.intel.com>,
	<peter.ujfalusi@linux.intel.com>,
	<ranjani.sridharan@linux.intel.com>,
	<yung-chuan.liao@linux.intel.com>, <willy@infradead.org>,
	<linux-kernel@vger.kernel.org>, <andy@kernel.org>,
	<intel-poland@eclists.intel.com>, <andy.shevchenko@gmail.com>
Subject: Re: [PATCH v4 1/2] lib/string_helpers: Introduce parse_int_array_user()
Date: Fri, 2 Sep 2022 14:47:47 +0200	[thread overview]
Message-ID: <2410bc5e-4278-ed69-c57a-868ec01ada21@intel.com> (raw)
In-Reply-To: <e48ffb56-f220-adf5-87ca-1826397f2e7f@linux.intel.com>

On 2022-09-02 2:23 PM, Amadeusz Sławiński wrote:
> On 9/2/2022 2:29 PM, Cezary Rojewski wrote:

...

>> +/**
>> + * parse_int_array_user - Split string into a sequence of integers
>> + * @from:    The user space buffer to read from
>> + * @ppos:    The current position in the buffer
> 
> There is no such parameter?
> 
>> + * @count:    The maximum number of bytes to read
>> + * @tkns:    Returned pointer to sequence of integers
> 
> s/tkns/array/ ?
> 
>> + *
>> + * On success @tkns is allocated and initialized with a sequence of
> 
> ditto
> 
>> + * integers extracted from the @from plus an additional element that
>> + * begins the sequence and specifies the integers count.
>> + *
>> + * Caller takes responsibility for freeing @tkns when it is no longer
> 
> ditto
> 
>> + * needed.
>> + */
>> +int parse_int_array_user(const char __user *from, size_t count, int 
>> **array)

Ack. Will send an update shortly.


Regards,
Czarek

  reply	other threads:[~2022-09-02 13:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-02 12:29 [PATCH v4 0/2] " Cezary Rojewski
2022-09-02 12:29 ` [PATCH v4 1/2] " Cezary Rojewski
2022-09-02 12:23   ` Amadeusz Sławiński
2022-09-02 12:47     ` Cezary Rojewski [this message]
2022-09-02 12:29 ` [PATCH v4 2/2] ASoC: SOF: Remove strsplit_u32() and tokenize_input() Cezary Rojewski

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=2410bc5e-4278-ed69-c57a-868ec01ada21@intel.com \
    --to=cezary.rojewski@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=amadeuszx.slawinski@linux.intel.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=andy@kernel.org \
    --cc=broonie@kernel.org \
    --cc=hdegoede@redhat.com \
    --cc=intel-poland@eclists.intel.com \
    --cc=kai.vehmanen@linux.intel.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=peter.ujfalusi@linux.intel.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=ranjani.sridharan@linux.intel.com \
    --cc=tiwai@suse.com \
    --cc=willy@infradead.org \
    --cc=yung-chuan.liao@linux.intel.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

all inboxes | Powered by JetHome®