Tested on NCA-1510B Lanner Electronics Inc.
- Ubuntu machine with network connection for making bootable USB.
- An 8GiB USB.
- Download latest ubuntu server distro image. Recommend ubuntu-server 18.04
| #include <iostream> | |
| #include <vector> | |
| #include <string> | |
| #include <cmath> | |
| using namespace std; | |
| #define MAX 1000 // cost will never reach this value | |
| struct POSITION |
Tested on NCA-1510B Lanner Electronics Inc.
| 1. Execute make first. This will result in a netlinkKernel.ko output among many others. | |
| 2. Execute $ gcc netlinkUser.c -o netlinkUser | |
| 3. Insert kernel module by :$ sudo insmod netlinkKernel.ko | |
| 4. Run ./netlinkUser to see message and run dmesg to see debug messages | |
| 5. Remove module by : $ sudo rmmod netlinkKernel | |
| 6. Finally make clean to remove output files. |
| // mxhan | |
| // Problem 1: word counting | |
| #include <cstdlib> | |
| #include <cstring> | |
| #include <fstream> | |
| #include <iostream> | |
| #include <string> | |
| using namespace std; |