Skip to content

veeruv/Linux_DD

Repository files navigation

Linux_DD

Linux device drivers sample My Linux device drivers course example :

..\Chapter_02\Examples\0\kernel-build.txt ..\Chapter_02\Examples\0a\ld_and_crt1.o.txt ..\Chapter_02\Examples\0a\no_main_fn_in_a_C_program.txt ..\Chapter_02\Examples\1\simple_hello_world.txt ..\Chapter_02\Examples\1a\simple_hello_world.txt ..\Chapter_02\Examples\1a__init-and-__exit.txt ..\Chapter_02\Examples\1b\simple_hello_world.txt ..\Chapter_02\Examples\1b\without_static_class_definition.txt ..\Chapter_02\Examples\1c\EXPORT_SYMBOL.txt ..\Chapter_02\Examples\1c\simple_hello_world.txt ..\Chapter_02\Examples\1c\without_static_class_definition.txt ..\Chapter_02\Examples\2\kernel_version_checking.txt ..\Chapter_02\Examples\3\simple_hello_world_with_parms.txt ..\Chapter_02\Examples\4\stacking_of_modules.txt ..\Chapter_02\Examples\4a\stacking_of_modules.txt ..\Chapter_02\Examples\5\single_module_with_multiple_src_files.txt ..\Chapter_02\Examples\5a\single_module_with_multiple_src_files.txt ..\Chapter_03\Examples\0a\who_needs_dev_kmem.txt ..\Chapter_03\Examples\1a\simple_driver_2-6_style.txt ..\Chapter_03\Examples\1b\ReadLen_and_WriteLen.txt ..\Chapter_03\Examples\1b\simple_driver_2-6_style.txt ..\Chapter_03\Examples\1c\myfile.txt ..\Chapter_03\Examples\1c\simple_driver_2-6_style-read-doesnot-return-0.txt ..\Chapter_03\Examples\1d\simple_driver_2-6_style-write-returns-0.txt ..\Chapter_03\Examples\1d\WARNING_run_top_and_you_will_see_100%CPU_therefore_kill_window_or_process.txt ..\Chapter_03\Examples\1e\SameMajorDiffMinorDevice.txt ..\Chapter_03\Examples\2b\simple_driver_2-6_style_with_devctlblock.txt ..\Chapter_03\Examples\2_4\2_4_1a\simple_driver_2-4_style.txt ..\Chapter_03\Examples\2_4\2_4_2a\simple_driver_2-4_style_with_devctlblock.txt ..\Chapter_03\Examples\2_4\2_4_3a\private_data.txt ..\Chapter_03\Examples\2_4\2_4_5a\static_dynamic_major_number.txt ..\Chapter_03\Examples\2_4\2_4_6a\static_dynamic_major_number_with_parm.txt ..\Chapter_03\Examples\3b\private_data.txt ..\Chapter_03\Examples\3c\private_data.txt ..\Chapter_03\Examples\3c\problem_with_vmalloc_in_open.txt ..\Chapter_03\Examples\5b\static_dynamic_major_number.txt ..\Chapter_03\Examples\5c\static_dynamic_major_number_device_create.txt ..\Chapter_03\Examples\6b\static_dynamic_major_number_with_parm.txt ..\Chapter_03\Examples\6c\dynamic_parm_with_device_create.txt ..\Chapter_03\Examples\7b\open_flags.txt ..\Chapter_03\Examples\7c\open_flags-device_create.txt ..\Chapter_03\Examples\7d\open_flags+corrected_ppos.txt ..\Chapter_03\Examples\7e\device_create.txt ..\Chapter_03\Examples\7e\open_flags+corrected_ppos.txt ..\Chapter_03\Examples\7f\open_flags+corrected_ppos+O_APPEND.txt ..\Chapter_03\Examples\7g\device_create.txt ..\Chapter_03\Examples\7g\open_flags+corrected_ppos+O_APPEND.txt ..\Chapter_03\Examples\8b\kernel_tracks_references_on_open_device.txt ..\Chapter_03\Examples\8c\kernel_doesnot_track_references_on_closed_device.txt ..\Chapter_03\Examples\8d\device_create.txt ..\Chapter_03\Examples\8d\kernel_tracks_references_on_open_device.txt ..\Chapter_03\Examples\8e\device_create.txt ..\Chapter_03\Examples\8e\kernel_doesnot_track_references_on_closed_device.txt ..\Chapter_03\Examples\9\readbuffer_and_writebuffer_handling.txt ..\Chapter_03\Examples\9a\Using_USB_and_CDD.txt ..\Chapter_03\Examples\9a\using_usb_register_dev.txt ..\Chapter_03\Examples\9s\StubTesting.txt ..\Chapter_03\Examples\9s\USBDriverIncorrectMajorNum.txt ..\Chapter_03\Examples\9s\USBDriverPrep.txt ..\Chapter_03\Examples\9y\SAME_AS_1u_WITH_ADDITIONAL_libusb_examples.txt ..\Chapter_03\Examples\9z\userspace_driver-using-svgalib-for-VGA-consoles.txt ..\Chapter_04\Examples\1\ProcEntryRead_withHZ.txt ..\Chapter_04\Examples\1\README.txt ..\Chapter_04\Examples\1a\ProcEntryRead_with_jiffies.txt ..\Chapter_04\Examples\1a\README.txt ..\Chapter_04\Examples\2\ProcEntryReads+Writes.txt ..\Chapter_04\Examples\2\README.txt ..\Chapter_04\Examples\2_4\4a\README.txt ..\Chapter_04\Examples\2_4\5a\README.txt ..\Chapter_04\Examples\3\ProcEntryMkdir+Reads+Writes.txt ..\Chapter_04\Examples\3\README.txt ..\Chapter_04\Examples\4\README.txt ..\Chapter_04\Examples\4\seq_file_example.txt ..\Chapter_04\Examples\5\strace.txt ..\Chapter_04\Examples\5a\var_spool_abrt.txt ..\Chapter_04\Examples\5b\CDD+ReadProcEntry.txt ..\Chapter_04\Examples\5b\README.txt ..\Chapter_04\Examples\5c\CDD+ReadProcEntry+device_create.txt ..\Chapter_04\Examples\5c\README.txt ..\Chapter_04\Examples\6b\CDD+ReadWriteProcEntry.txt ..\Chapter_04\Examples\6b\README.txt ..\Chapter_04\Examples\6c\CDD+ReadWriteProcEntry_device_create.txt ..\Chapter_04\Examples\6c\README.txt ..\Chapter_04\Examples\7\Buggy_and_hangs.txt ..\Chapter_04\Examples\7\README.txt ..\Chapter_04\Examples\7a\diff_kdb_vs_kgdb.txt ..\Chapter_04\Examples\7a\kgdb_reference.txt ..\Chapter_04\Examples\7b\CAVEAT-can-corrupt-rootfs.txt ..\Chapter_04\Examples\7b\Using_USB_and_CDD.txt ..\Chapter_04\Examples\7b\using_usb_register_dev.txt ..\Chapter_04\Examples\8\proc_void_ptr_data.txt ..\Chapter_04\Examples\8\README.txt ..\Chapter_05\Examples\0\ex1_almost100%usr.txt ..\Chapter_05\Examples\0\ex2_almost100%ela.txt ..\Chapter_05\Examples\0a\lsp_ch4_4.txt ..\Chapter_05\Examples\0a\scheduler_getpriority+setpriority.txt ..\Chapter_05\Examples\0a\SCHED_OTHER.txt ..\Chapter_05\Examples\0b\lsp_ch4_4a.txt ..\Chapter_05\Examples\0b\scheduler_priority.txt ..\Chapter_05\Examples\0b\SCHED_OTHER.txt ..\Chapter_05\Examples\0c\lsp_ch4_4b.txt ..\Chapter_05\Examples\0c\scheduler_priority_w_param.txt ..\Chapter_05\Examples\0c\SCHED_OTHER.txt ..\Chapter_05\Examples\0d\lsp_ch4_4c.txt ..\Chapter_05\Examples\0d\scheduler_priority_w_param.txt ..\Chapter_05\Examples\0d\SCHED_FIFO.txt ..\Chapter_05\Examples\0e\lsp_ch4_4d.txt ..\Chapter_05\Examples\0e\scheduler_priority_w_param.txt ..\Chapter_05\Examples\0e\SCHED_RR.txt ..\Chapter_05\Examples\1\sem.txt ..\Chapter_05\Examples\1a\rwsem.txt ..\Chapter_05\Examples\1b\downgrade_rwsem.txt ..\Chapter_05\Examples\2\completion.txt ..\Chapter_05\Examples\3\spinlock.txt ..\Chapter_05\Examples\3a\rwspinlock.txt ..\Chapter_05\Examples\3a\spinlock_newstyle.txt ..\Chapter_05\Examples\3b\rwspinlock.txt ..\Chapter_05\Examples\3b\rwspinlockoldstyle.txt ..\Chapter_05\Examples\4\kfifo-examples.txt ..\Chapter_05\Examples\4a\kfifo.txt ..\Chapter_05\Examples\4x\BUGGY_with_oops_kfifo.txt ..\Chapter_05\Examples\6\atomic_bitops.txt ..\Chapter_05\Examples\7\seqlock.txt ..\Chapter_05\Examples\8\rcu.txt ..\Chapter_05\Examples\9b\app_using_pthreads_example.txt ..\Chapter_05\Examples\10\CAP_SYS_ADMIN.txt ..\Chapter_06\Examples\1\ioctl_and_return_int_from_ioctl.txt ..\Chapter_06\Examples\1a\return_string_from_ioctl.txt ..\Chapter_06\Examples\2a\proc+CDD.txt ..\Chapter_06\Examples\2b\CDD+ReadProcEntry+device_create.txt ..\Chapter_06\Examples\3b\multiple_minor_devices+procEntry.txt ..\Chapter_06\Examples\3c\multiple_minor_devices+procEntry_device_create.txt ..\Chapter_06\Examples\3d\multiple_minor_devices+procEntry_device_create.txt ..\Chapter_06\Examples\4b\devctlblk+container_of_macro.txt ..\Chapter_06\Examples\4c\devctlblk+container_of_macro.txt ..\Chapter_06\Examples\4c\device_create.txt ..\Chapter_06\Examples\5b\multiple_minor_devices+procEntry+devctlblk+sem+spinlock.txt ..\Chapter_06\Examples\5c\multiple_dev+static_major+noncontiguous_minor.txt ..\Chapter_06\Examples\5c\non-class_device_create.txt ..\Chapter_06\Examples\5c\who_needs_dev_kmem.txt ..\Chapter_06\Examples\5d\device_create.txt ..\Chapter_06\Examples\5d\multiple_dev_device_create.txt ..\Chapter_06\Examples\5d\non_contiguous_minors.txt ..\Chapter_06\Examples\5e\multiple_dev+noncontiguous_minor.txt ..\Chapter_06\Examples\6b\llseek.txt ..\Chapter_06\Examples\6b\myfile.txt ..\Chapter_06\Examples\6b\tst.txt ..\Chapter_06\Examples\6b\tst2.txt ..\Chapter_06\Examples\6c\device_create.txt ..\Chapter_06\Examples\6c\llseek.txt ..\Chapter_06\Examples\7b\poll_llseek_multiple-minor.txt ..\Chapter_06\Examples\7c\device_create.txt ..\Chapter_06\Examples\7c\poll_llseek_multiple-minor.txt ..\Chapter_06\Examples\7d\OFLAGS_poll_llseek_multiple-minor.txt ..\Chapter_06\Examples\7e\device_create.txt ..\Chapter_06\Examples\7e\OFLAGS_poll_llseek_multiple-minor.txt ..\Chapter_06\Examples\8b\creating_device_nodes_from_driver.txt ..\Chapter_06\Examples\8b\proc_data.txt ..\Chapter_07\Examples\1\jiffies_example.txt ..\Chapter_07\Examples\3\jiffies+do_gettimeofday.txt ..\Chapter_07\Examples\4\rdtsc+mdelay+cpu_khz.txt ..\Chapter_07\Examples\5\64bit_div_on_32bit_arch_precision_issues.txt ..\Chapter_07\Examples\5\freeze+cpu_khz.txt ..\Chapter_07\Examples\5a\64bit_div_on_32bit_arch_precision_issues.txt ..\Chapter_07\Examples\5a\freeze+cpu_khz.txt ..\Chapter_07\Examples\6\intel_example-RDTSC.txt ..\Chapter_08\Examples\1\kmalloc_example.txt ..\Chapter_08\Examples\2\vmalloc.txt ..\Chapter_08\Examples\3__get_free_page.txt ..\Chapter_08\Examples\3a\multiple_pages.txt ..\Chapter_08\Examples\3a__get_free_pages.txt ..\Chapter_08\Examples\5\kmem_cache_create_alloc.txt ..\Chapter_08\Examples\6\kmem_cache_create_alloc_in_read_write_call.txt ..\Chapter_08\Examples\7b\proc_data+OFLAGS+poll+llseek+multiple_minor+pipe.txt ..\Chapter_08\Examples\7b\to_implement_memalloc_in_open.txt ..\Chapter_09\Examples\1\barrier.txt ..\Chapter_09\Examples\1a\barrier.txt ..\Chapter_09\Examples\1b\rmb_wmb.txt ..\Chapter_09\Examples\2\README.txt ..\Chapter_09\Examples\2\sample.txt ..\Chapter_09\Examples\2\timer_inl.txt ..\Chapter_09\Examples\2a\timing_Issues.txt ..\Chapter_09\Examples\2b\vga_port.txt ..\Chapter_09\Examples\5\PS2_keyboard_led_enable_disable.txt ..\Chapter_09\Examples\5a\PS2_keyboard_led_enable_disable.txt ..\Chapter_09\Examples\9\Example_3_9.txt ..\Chapter_09\Examples\9\readbuffer_and_writebuffer_handling.txt ..\Chapter_10\Examples\1\Chapter10-Overview.txt ..\Chapter_10\Examples\2\NOTE_no_wakeup_NOTE_timing_issue_between_reader_and_writer.txt ..\Chapter_10\Examples\2\sleep_on_timeout.txt ..\Chapter_10\Examples\2a\hello.txt ..\Chapter_10\Examples\2a\interruptible_sleep+waitqueue.txt ..\Chapter_10\Examples\2b\prepare_to_wait_exclusive.txt ..\Chapter_10\Examples\2c\wait_event.txt ..\Chapter_10\Examples\3\kernel_timer.txt ..\Chapter_10\Examples\3a\kernel_timer.txt ..\Chapter_10\Examples\3a\mod_timer.txt ..\Chapter_10\Examples\3b\del_timer.txt ..\Chapter_10\Examples\3b\kernel_timer.txt ..\Chapter_10\Examples\3c\while-1_for_30secs_in_kernel_timer.txt ..\Chapter_10\Examples\4\tasklet.txt ..\Chapter_10\Examples\5\workqueue_default_queue.txt ..\Chapter_10\Examples\5a\workqueue_default_queue_periodic_timer.txt ..\Chapter_10\Examples\5b\workqueue_INIT_WORK_container_of_macro.txt ..\Chapter_10\Examples\5c\workqueue_INIT_WORK_reg.txt ..\Chapter_10\Examples\5d\workqueue_delayed.txt ..\Chapter_10\Examples\6\interrupt_handler_with_delayed_wkqueue_fast_or_slow.txt ..\Chapter_10\Examples\6\UseThisExampleToFigureOutMouseIRQ.txt ..\Chapter_10\Examples\6a\sharedinterrupt_handler_with_delayed_wkqueue.txt ..\Chapter_10\Examples\6b\shared_fast_interrupt_handler.txt ..\Chapter_10\Examples\7\buffering_with_completion_fns.txt ..\Chapter_10\Examples\7a\interrupt_driven_buffering_with_waitq.txt ..\Chapter_10\Examples\8a\mouse_driver_example.txt ..\Chapter_11\Examples\1\sysinfo_example.txt ..\Chapter_11\Examples\2\ACPI.txt ..\Chapter_12\Examples\1a\lspci.txt ..\Chapter_12\Examples\2\msi.txt ..\Chapter_12\Examples\2a\msix.txt ..\Chapter_12\Examples\3\arstechnica-link.txt ..\Chapter_12\Examples\3\test-PCI-device.txt ..\Chapter_12\Examples\4\ACPI.txt ..\Chapter_12\Examples\5\typhoon.txt ..\Chapter_13\Examples\0a\See_1u_in_Ch3.txt ..\Chapter_13\Examples\0u\SameAsCh3Ex9u.txt ..\Chapter_13\Examples\0u\simple_driver_2-6_style_and_using_USB_and_CDD.txt ..\Chapter_13\Examples\0u\using_usb_register_dev.txt ..\Chapter_13\Examples\1\usbprocentry.txt ..\Chapter_13\Examples\2\usbmon.txt ..\Chapter_13\Examples\3b\control_delcom_gen2.txt ..\Chapter_13\Examples\4\mailbox-friends-alert.txt ..\Chapter_13\Examples\4\usbmon.txt ..\Chapter_13\Examples\4a\PENDRIVE.txt ..\Chapter_13\Examples\6\test-USB-device.txt ..\Chapter_14\Examples\2\same_as_example_13_3.txt ..\Chapter_15\Examples\1\mmap.txt ..\Chapter_15\Examples\1a\mmapapp.txt ..\Chapter_15\Examples\1b\mmap_CDD.txt ..\Chapter_15\Examples\1c\mmap_and_ioctl.txt ..\Chapter_15\Examples\1d\mmap_and_ioctl_to_CDD_buffer.txt ..\Chapter_15\Examples\1e\from_mmap_example_tar.txt ..\Chapter_15\Examples\4\sys_mknod.txt ..\Chapter_16\Examples\1\simple_block_device.txt ..\Chapter_16\Examples\3\fibmap.txt ..\Chapter_16\Examples\3\README.txt ..\Chapter_16\Examples\4\PARTITIONS.txt ..\Chapter_16\Examples\4\README.txt

About

Linux device drivers sample

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published