[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

Can you code a Linux driver /g/?


Thread replies: 7
Thread images: 1

File: Linux-Penguin.png (458KB, 2000x2320px) Image search: [Google] [Yandex] [Bing]
Linux-Penguin.png
458KB, 2000x2320px
Can you code a Linux driver /g/?
>>
>>54686814

#include <Linux/module.h>
#include <Linux/kernel.h>

static int __init foo(void)
{
printk(KERN_WARN"poo in loo\n");
return 0;
}
static void _exit bar(void)
{
printk(KERN_WARN"ok, boss\n");
}

module_init(foo);
modeule_exit(bar);

MODULE_LICENSE("BSD");
>>
Yup. I work in embedded systems.
>>
>>54687210
Ok
>>
>>54686814
>Can you code a Linux driver /g/?
Yes, I've done it many times.

>>54686926
This, it's not even hard.

http://tldp.org/HOWTO/Module-HOWTO/
>>
>>54687210
What would you recommend for starters?
>>
>>54687507
See the link >>54687474
Thread replies: 7
Thread images: 1
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK