From the course: Linux Device Drivers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Work with licensing and modules

Work with licensing and modules - Linux Tutorial

From the course: Linux Device Drivers

Start my 1-month free trial

Work with licensing and modules

- [Instructor] Let's talk about licensing. You need to be aware of licensing with modules because it affects the available API, let's investigate. So we'll talk about the GPL briefly specifically, licensing in general. And then we'll look at a couple of macros that show up in kernel source code including, modules that you write probably. The module licensed macro and the export symbol GPL macro. So the GPL stands for the GNU general public license. It's a very common open source license and it's used a lot with Linux. The GPL is one of many preferred licenses for Linux. Using a preferred license for your code opens up much more API as available to your module. That means you're likely going to want to license your module code. You license your code in terms of the Linux kernel API, by using the macro module_license. And we see here, examples that I found in the kernel source tree. The most common example with over 6,000…

Contents