You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently, sizeof(struct ccp_priv_state) = 1952, which is dominated by assuming a maximum of 110 control registers and 110 report registers, which are each 8 bytes.
This seems like way more than necessary. We could make this smaller by default and configurable as a kernel module option if someone needs an especially large program.
Better yet, now that init_programs is only run once at the beginning, we could dynamically allocate the space for registers when programs are installed, that way we store exactly as much space for registers as we need.
The text was updated successfully, but these errors were encountered:
currently,
sizeof(struct ccp_priv_state) = 1952
, which is dominated by assuming a maximum of 110 control registers and 110 report registers, which are each 8 bytes.This seems like way more than necessary. We could make this smaller by default and configurable as a kernel module option if someone needs an especially large program.
Better yet, now that init_programs is only run once at the beginning, we could dynamically allocate the space for registers when programs are installed, that way we store exactly as much space for registers as we need.
The text was updated successfully, but these errors were encountered: