Comments on: Linux block device driver https://olegkutkov.me/2020/02/10/linux-block-device-driver/ Programming, electronics and diy projects Fri, 13 Oct 2023 13:15:38 +0000 hourly 1 https://wordpress.org/?v=6.5.3 By: RS https://olegkutkov.me/2020/02/10/linux-block-device-driver/#comment-1866 Fri, 13 Oct 2023 13:15:38 +0000 https://olegkutkov.me/?p=1104#comment-1866 Great tutorial. Thanks a lot.

]]>
By: Ronny https://olegkutkov.me/2020/02/10/linux-block-device-driver/#comment-1542 Fri, 28 Apr 2023 15:08:31 +0000 https://olegkutkov.me/?p=1104#comment-1542 I really liked your tutorial and managed to get everything working fine with kernel 5.4.*.
However, when compiling with kernel 5.15 there are two ERRORS:
ERROR: modpost: “alloc_disk” undefined
ERROR: modpost: “blk_mq_init_sq_queue” undefined
A quick search on the internet revealed that the API has changed for newer kernels.

I am miles away from doing this rewrite myself.
Do you have time and fun to update your great tutorial?
Thanks

]]>
By: MG https://olegkutkov.me/2020/02/10/linux-block-device-driver/#comment-1333 Tue, 21 Jun 2022 08:03:40 +0000 https://olegkutkov.me/?p=1104#comment-1333 The myblock_driver_exit function is missing the release of blockdev:

kobject_put(blockdev);

Without this loading the module, then unloading, and loading again fails with

kobject_add_internal failed for blockdev with -EEXIST, don’t try to register things with the same name in the same directory.

]]>
By: Paginski https://olegkutkov.me/2020/02/10/linux-block-device-driver/#comment-1294 Fri, 27 May 2022 09:08:50 +0000 https://olegkutkov.me/?p=1104#comment-1294 Great tutorial, helped me a lot. Any updates about continuation about making partitions?

]]>