lkml.org 
[lkml]   [2019]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC PATCH v4 8/9] printk-rb: new functionality to support printk
Date
On 2019-08-20, Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> wrote:
> [..]
>> +void prb_init(struct printk_ringbuffer *rb, char *data, int data_size_bits,
>> + struct prb_desc *descs, int desc_count_bits,
>> + struct wait_queue_head *waitq)
>> +{
>> + struct dataring *dr = &rb->dr;
>> + struct numlist *nl = &rb->nl;
>> +
>> + rb->desc_count_bits = desc_count_bits;
>> + rb->descs = descs;
>> + atomic_long_set(&descs[0].id, 0);
>> + descs[0].desc.begin_lpos = 1;
>> + descs[0].desc.next_lpos = 1;
>
> dataring_desc_init(), perhaps?

Agreed.

\
 
 \ /
  Last update: 2019-08-21 07:49    [W:0.099 / U:3.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site