- Your First Loadable Kernel Module - June 26, 2009
- Your First Loadable Kernel, Part 2 - July 1, 2009
- Loadble Kernel Modules, Coming and Going - July 8, 2009
- Everything You Wanted to Know About Module Params- July 15, 2009
- Building and Running a New Kernel - July 22, 2009
- Kernel Symbols: What's Available to Your Module - July 29, 2009
- [What's in That Loadable Module, Anyway? - Augus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set module name from the list: | |
program = sma_usb | |
# 'The list' | |
#---------- | |
obj-m += sma_usb.o | |
# obj-m += sma_chardev.o | |
# obj-m += sma_skeleton.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* linux/fs/exec.c | |
* | |
* Copyright (C) 1991, 1992 Linus Torvalds | |
*/ | |
/* | |
* #!-checking implemented by tytso. | |
*/ | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/timer.h> | |
#include <linux/jiffies.h> | |
static void mykmod_timer_handler(unsigned long data); | |
static unsigned long onesec; | |
DEFINE_TIMER(mytimer, mykmod_timer_handler, 0, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc x11.c -L/usr/X11R6/lib -lX11 -o x11 | |
#include <X11/Xlib.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int main(void) { | |
Display *d; | |
Window w; | |
XEvent e; |
# Random notes for me to become a good C programmer
C89 (aka "Standard C", aka "ANSI C")
- Pointers. This is critical. You can't do anything more than "hello world" type stuff in C if you don't get this.
- Stop reading articles! No website is as good as a good book. [https://fabiensanglard.net/c/]
- read this book: Expert C Programming
- Write code every single day.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 39991fa0f75e7e6302f17e4882ff2d2a18f36cae Mon Sep 17 00:00:00 2001 | |
From: Sohaib Mohammed <sohaib.amhmd@gmail.com> | |
Date: Sat, 16 Jan 2021 06:48:31 +0200 | |
Subject: [PATCH 1/1] mychar - hello world character device | |
--- | |
src/kernel/Mybuild | 7 +++++++ | |
src/kernel/mychar.c | 31 +++++++++++++++++++++++++++++++ | |
2 files changed, 38 insertions(+) | |
create mode 100644 src/kernel/mychar.c |
https://github.com/kraten/chessbot
https://github.com/LouisAsanaka/PyChessBot
https://github.com/Panc4kes/chess.com-bot
https://github.com/kochsebastian/ChessVisionBot
https://github.com/taiypeo/ChessBot
https://github.com/edfrue/chess_cheat
https://github.com/Stanou01260/chessbot_python
https://github.com/GabrieleMaurina/chess-cheat
https://github.com/Akenne/Chess-Bot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GUI.py | |
# RUN THIS FILE | |
import pygame | |
from solver import solve, valid | |
import time | |
pygame.font.init() | |
class Grid: | |
# To change the starting board change this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/users/379897 |