Re: [PATCH RFC 05/20] ctlv: Prepare message input handling

From: Jiri Pirko

Date: Fri Oct 23 2026 - 09:02:58 EST


Thu, Oct 22, 2026 at 08:39:42PM +0200, jgg@xxxxxxxx wrote:
>On Wed, Oct 21, 2026 at 01:43:24AM +0100, Jonathan Cameron wrote:
>
>> > +bool ctlv_message_input_rebind(struct ctlv_cursor *nest, const struct ctlv_schema_tree *tree,
>> > + u32 node)
>> > +{
>> > + const struct ctlv_message_input_scope *bound_scope;
>> > + const struct ctlv_message_input_nest *indexed;
>> > + u32 i;
>> > +
>> > + if (WARN_ON_ONCE(!nest->attr || !nest->msg || !nest->msg->index))
>> > + return false;
>> > + if (!ctlv_message_nest_index_ok(nest))
>> > + return false;
>> > + bound_scope = &nest->msg->index->scopes[nest->index_nest_scope];
>> > + indexed = &nest->msg->index->nests[bound_scope->nest];
>> > + for (i = 0; i < indexed->scopes_count; i++) {
>>
>> for (u32 i = 0; ...
>
>Is that allowed now?

Yeah it is! You live in the past, same as I do obviously :)