Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Makefile target to test lkm_device #3

Closed
tpiekarski opened this issue Mar 19, 2020 · 3 comments
Closed

Create a Makefile target to test lkm_device #3

tpiekarski opened this issue Mar 19, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@tpiekarski
Copy link
Owner

Create a target for testing lkm_device with following steps:

  • Load module
  • Identify device major
  • Create device file in /device using previously identified major
  • Read a few messages from /device
  • Delete device file
  • Unload module
@tpiekarski
Copy link
Owner Author

Probably integrate proc filesystem into the module to get access to the major number. Access to this major number could be done for example by: cat /proc/lkm/device instead of using somehow the Kernel Ring Buffer.

@tpiekarski tpiekarski added the enhancement New feature or request label Mar 20, 2020
@tpiekarski
Copy link
Owner Author

tpiekarski commented Mar 22, 2020

Probably integrate proc filesystem into the module to get access to the major number. Access to this major number could be done for example by: cat /proc/lkm/device instead of using somehow the Kernel Ring Buffer.

See issue #6

@tpiekarski
Copy link
Owner Author

Resolved with PR #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant