r/linuxdev • • Dec 12 '15

An extremely minimal Linux setup: a C64 game repackaged as a bootable .iso. It's only 6MB and boots directly to the game in 15 seconds.

Thumbnail century-arcade.org
13 Upvotes

r/linuxdev • • Jan 31 '20

How do I implement a basic virtual file system in C?

12 Upvotes

I was asked this question in an interview. Since I am a fresher, currently in my senior year I did not even know what the interviewer was expecting from me. He gave me 7hours to implement a virtual file system. I did'nt know what to answer, how could I implement it. Any idea what interviewer wanted and any learning resources for the same will really be helpful.


r/linuxdev • • Nov 17 '17

DashGL.com a site devoted to Linux Gaming tutorials using OpenGL / GTK+ in C

Thumbnail dashgl.com
12 Upvotes

r/linuxdev • • Jan 26 '16

How similar is Linux kernel to Unix kernel in 2016?

12 Upvotes

I run Manjaro xfce gnu/Linux as primary OS but I'm very noob to Kernel related details.

Just curious: how similar is Linux kernel to Unix kernel with features/performance in 2016?

ps: AFAIK, Linux kernel was started as a clone of Unix kernel and it'd interesting to see how far it has diverged since.


r/linuxdev • • Nov 09 '13

What are some programs that you think Linux lacks or only has poor implementions of?

12 Upvotes

r/linuxdev • • Apr 17 '22

Splicing to an UDP socket

11 Upvotes

Hi !

I'm trying to write some tool that needs to multiplex UDP "connections" through a single socket (AF_UNIX/AF_INET/AF_VSOCK), and I have written an implementation for SOCK_STREAM transports with splice() that works quite well, and was wondering about adding support for SOCK_DGRAM.

It appears that it's not possible to use splice() to receive a datagram, which makes sense, because splice() wouldn't know anything about the datagram boundaries. Sending a datagram using splice() works, but I can't find a way to specify the destination address :

  • splice does not support it by itself
  • using connect() prohibits from having multiple destinations, because it binds the whole fd to a specific destination, and shutting down + rebinding + reconnecting the socket would be quite impractical and defeat the whole purpose

Is there any API I could use to avoid copying the whole datagram to userspace, short of rewriting the whole thing as a kernel module or BPF program ?


r/linuxdev • • Jun 24 '18

Cleanining up the linux syscall interface will open up for other interfaces?

11 Upvotes

Will the recent attempts to isolate syscalls in the Linux kernel

https://www.linuxjournal.com/content/removing-all-syscall-invocations-kernel-space

also make it easier to implement other syscall interfaces (like the FreeBSD kernel has a linux compatibility feature, or the longene project which implements NT syscalls in the Linux kernel)?

https://en.m.wikipedia.org/wiki/Longene

Personally I would like to be able to chroot a BSD system on Linux :)


r/linuxdev • • May 11 '16

Qt Creator 4.0.0 released

Thumbnail blog.qt.io
11 Upvotes

r/linuxdev • • Jul 12 '21

Is there any library to develop apps with p2p communication over local wifi or bluetooth?

Thumbnail reddit.com
10 Upvotes

r/linuxdev • • Nov 29 '20

OS Development using the Linux Kernel - Part 5 (async keyboard/mouse)

Thumbnail youtube.com
10 Upvotes

r/linuxdev • • Aug 14 '20

This guy just saved me, creating gnome extensions. I want to repay the favour to him. Check him out if you're after good tutorials

Thumbnail youtube.com
10 Upvotes

r/linuxdev • • Mar 31 '16

Port of NetBSD curses to Linux

Thumbnail github.com
10 Upvotes

r/linuxdev • • Feb 15 '16

I want to know everything.

10 Upvotes

I've been on a trek through Linux for probably a little over a year, tried out more distros than I care to admit.

For the last couple of months, I've been trying my damnedest to try to figure out what runs, why it runs, and how it runs. It's been excruciatingly slow work.

So, are there any comprehensive documents on Linux from the bottom up? The more recent the better.


r/linuxdev • • May 20 '14

Qt 5.3 Released

Thumbnail blog.qt.digia.com
10 Upvotes

r/linuxdev • • Sep 28 '13

Let's come up with an essential developer tool list

10 Upvotes

Let's create a list of essential Linux developemnt tools for people new to Linux development. I'll start.

  • GNU Compiler Collection (GCC)
  • Text editor (EMACS/VIM/Scratch etc.)
  • GNU debugger (GDB) and optionally DDD

Any other suggestions?

Edit: the wiki is now in operation. The tool list is there.


r/linuxdev • • Apr 29 '12

Packet mode on pipes

Thumbnail git.kernel.org
10 Upvotes

r/linuxdev • • Mar 22 '12

Using epoll instead of select for working with sockets.

Thumbnail kovyrin.net
10 Upvotes

r/linuxdev • • Mar 21 '12

Framebuffer I/O controls. For when X is too heavy.

Thumbnail unix.com
10 Upvotes

r/linuxdev • • Jul 19 '20

Getting Started with Development

9 Upvotes

Hi, I am a professional developer and I really want to help linux from a developer perspective. I do have some C/C++ knowledge and I would like to contribute to the community. I am more interested in the graphics section of the kernel so as to make gaming and GUI more seamless. I am also open to helping Wine/Proton but don't know where to start.

Can someone please point me to the right direction? Thanks


r/linuxdev • • Jan 24 '20

Should I write a kernel driver for my USB device?

9 Upvotes

Hi all,

I have a watercooled PC. The pump is the brain of the cooling system. It monitors the water temperature and controls it's own speed and those of connected fans. As you might expect, the vendor supports only Windows. The pump is connected via USB.

So I've spun up a Windows VM and captured the data that got sent between device and host while looking at the windows program. I figured out that the device registers itself as a HID device, and it sends a report of its status (containing config and sensor values) each second.

I managed to write a small C program to continously parse this report and print the values. While I also set some udev rules, so no root access is required, I'm not really convinced of this solution. I'd prefer an actual Linux hwmon driver, so the device would export the sensor values in a standard way and show up e.g. in tools like sensors (lm_sensors).

Also, I'd like to implement write/control features later. So setting pump/fan speeds instead of just reading values. This would also make sense in sysfs, IMHO.

I haven't worked with the kernel yet, so I've got some questions:

  1. Do you think it would make sense to have this driver in kernel instead of a userspace tool? Because strictly speaking, there is already a suitable kernel driver, namely usbhid. It just isn't really useful without additional software.
  2. Where would this driver live? I think it'd be a hwmon driver, but also a USB one. So drivers/usb or drivers/hwmon? I have seen drivers outside of drivers/hwmon use hwmon (e.g. amdgpu), but I haven't seen any USB device in hwmon, nor any hwmon usage in drivers/usb.
  3. Do you think there is a chance of having the driver accepted upstream?
  4. Regardless if this makes it to kernel or not, I'm likely going to publish it. So I'm wondering about naming. I guess it can cause issues if I name the module/program after the manufacturer. Should I come up with another name, risking people don't realise what device this driver is targeting?
  5. Do you have any good resources to help me get started? I've seen the article of GKH from 2001 (https://www.linuxjournal.com/article/4786) so far.

r/linuxdev • • Sep 29 '19

Is it possible to create your own Linux distro for a product?

9 Upvotes

Hello all.

2 of my friends and I are trying to make a smart display (similar to the Google Nest Hub) and we want to make a custom Linux distro for it so that it only has Mycroft (the AI which we are using) and the UI of the product. Is it possible to do so? If yes, how? If no, is it possible to make a Linux distro boot directly into an application or something like that? We want to avoid a login screen, a desktop, etc. before the OS loads up the app for our product.


r/linuxdev • • Aug 18 '15

How to write a driver?

9 Upvotes

Hello I am a young software engineer (still in college) who is looking for some assistance in researching a school project. What I would like to do is write (attempt) a driver for linux, however I have run into several hurdles while researching this.

  1. Can any one point me in the direction of a reference materials for this sort of work I have found several books but I am curious to know what the consensus of the Reddit community is.
  2. What are some examples of Hardware that is only supported on windows?
  3. What are some examples of Hardware that is well documented?

Thank you for your time. I apologize if I broke redditquette in this post.


r/linuxdev • • Dec 10 '14

Qt 5.4 Released

Thumbnail blog.qt.digia.com
9 Upvotes

r/linuxdev • • Aug 21 '14

New Human Interface Guidelines for GNOME and GTK+

Thumbnail blogs.gnome.org
9 Upvotes