Re: [PATCH RFC 05/20] ctlv: Prepare message input handling
From: Jason Gunthorpe
Date: Thu Oct 22 2026 - 14:41:13 EST
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?
Jason