Skip to content

Improvement related to referencing subscribers data structure in kmod being bitmap #1037

@Koichi98

Description

@Koichi98

Improvement related to #1015.

  • Pass the referencing_subscribers bitmap directly to user-space instead of copying individual subscriber IDs via subscriber_ids_buffer. This eliminates the per-subscriber iteration in the kernel and the copy_to_user of the ID array.
  • Currently topic_local_id is monotonically incremented and never reused. With the limit raised to 1024, long-running systems may eventually exhaust the ID space. Introduce a free-ID bitmap to track available IDs and recycle them when subscribers/publishers are removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions