Re: [RFC PATCH v4 8/9] printk-rb: new functionality to support printk

John Ogness
2019-08-21T05:48:17Z

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.