2 Sep
2022
2 Sep
'22
2:47 p.m.
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