Skip to content

Conversation

@yamaura
Copy link
Contributor

@yamaura yamaura commented Aug 13, 2025

Thanks for the useful library! I implemented /proc/kallsyms.

/// Address of the symbol
pub address: u64,
/// Symbol type
pub symbol_type: char,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it would be possible to use some type of enum instead of a char?

enum SymbolType {
    Text,
    Undefined,
    WeakObject,
    // etc...
}

}

/// Get a list of kernel symbols from `/proc/kallsyms`
pub fn kallsyms() -> ProcResult<Vec<KAllSymsEntry>> {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why this doesn't just return a KAllSyms object?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants