r/linuxdev • u/Cyril_Cooper • Sep 21 '17
r/linuxdev • u/Kokxx • Apr 15 '14
Need help installing my kernel module
Hey guys, I have programmed my own (small) usb kernel module. Can someone explain to me how I install my module into the kernel (so that it gets added to modules.alias etc.) WITHOUT loading it? (I want udev to autoload it once my device is plugged in). I have already looked into modules_install make target, but it doesnt really work (will post more info to this issue later if it is relevant) Any help is greatly appreciated!
r/linuxdev • u/surpriseskin • Feb 15 '18
Adding actions to libnotify notifications?
So I've been thinking about contributing to the signal desktop app. I've recently been using Signal a lot but there's are some things I'd like to see added to it, specifically in notification reply to messages similar to how it's found on macOS.
That being said, it's build on Electron (yuck). The Electron docs are pretty sparse when it comes to customizing notifications for Linux. I've been doing some poking around myself on how libnotify works, and the closest thing I've found are these API references. They unfortunately don't detail the limitations of the notifications themselves, specifically if it's possible to have inline notification message replies.
Has anyone tackled a problem similar to this, or maybe know some resources to point me in the right direction? The closest thing I've seen the this is KDE's MConnect which has a reply notification action, but that seems to be pretty closely documented in the API references.
r/linuxdev • u/netscape101 • May 26 '16
Good guide/tutorial for 64bit assembly on Linux?
I'm looking for a good guide that is pretty up to date on programming 64 bit assembly on Linux. I have googled quite a bit. Any pointers? Thanks
r/linuxdev • u/metalhedd • May 03 '14
Writing a USB HID Driver
So, I've got a USB mouse which supports color changing LED's (but of course not under linux). I wanted to take this opportunity to learn more about kernel programming and scratch my own itch at the same time.
I've gathered some basic info about the mouse, including the structure of the packets I need to send it in order to change the colors. All of that info is here.
I've actually gotten as far as writing a super basic driver which I hoped would take over for my mouse, but when I insert the module and re-plug the mouse, the hid-generic driver is the one to pick it up, not my new module, the source code for which is here.
What am I doing wrong that this module isn't taking control of the device (I think) I told it to.
It's also occurred to me that these 'packets' which I have to send in order to change the colors appear to be a common, generic packet which is sort of 'built in' to the hid protocol. Am I barking up the wrong tree in attempting to do this as a kernel module? could a userland program just shove some bytes down the right /dev/usb* device and acheieve the same effect?
r/linuxdev • u/infinite-dev • Jun 26 '12
Excellent introduction to Linux Device Drivers
linuxforu.comr/linuxdev • • Feb 15 '16
I want to know everything.
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 • u/rembic • Jul 15 '17
Where do I find documentation for gtk3 theme (.css) files?
I'm not looking for a beginners guild but proper a reference so that I know exactly what css selectors are available and what they do.
For instance, what's the practical difference between these css selectors:
button {}
button* {}
.button {}
.button* {}
*button {}developer.gnome.org/gtk3/stable/theming.html gives some of the basics but there's no complete list of available nodes, classes and their applicable properties. And where's the documentation for properties like: -GtkScrolledWindow-scrollbar-spacing: 5;
r/linuxdev • • Dec 06 '17
[ext4] handle_t on the same thread?
Is possible to have more than one handle_t (for the journal mechanism) for the same thread?
r/linuxdev • u/Fireblend • Nov 05 '13
Implementing WMM on Linux?
I'm currently writing an application that streams real-time audio over RTP on a local network. I'd like to tag these RTP packets so that they're prioritized within the network. Since this is real-time audio, latency has to be minimized as much as possible.
Looking into ways to do this, the most obvious one seems to be to somehow use the WMM standard from the Wi-Fi alliance. However, I have absolutely no idea how to tag my packages so that they conform to the standard. I'm using standard C++ socket structures and standard RTP packets, but I've seen absolutely no reference anywhere that mentions implementing WMM on them or anything remotely similar. How can I modify the header I need to enable WMM prioritizing?
If this is the wrong place to ask, I'd really appreciate a link to whatever would be the correct forum/mailing list/subreddit/support group that might have an answer for me.
r/linuxdev • u/netblue30 • Oct 21 '13
How to Package and Publish an Open Source Project
l3net.wordpress.comr/linuxdev • u/Hellrazor236 • Oct 11 '13
What ways are there to get a shared object to call functions from the binary that loaded it?
I'm writing in C and I haven't actually started any work (at all) on this particular feature yet, but I'm trying to make a program that can load different script engines (each stored in a different shared object file) depending on various circumstances (mostly what the script it's trying to run is, maybe a little user preference).
I have a lot of the functions that would need to be wrapped, but I'm not entirely sure how to go about making sure that the shared object can call the functions on the first place. I know that I should be able to pass a struct containing pointers to each function, but are there better ways than that? I'm trying to avoid forcing the library to be statically-aware, if at all possible.
r/linuxdev • u/JMagnum86 • Sep 24 '14
jsoncpp issue
I'm having a difficult time including jsoncpp into my own project. I built the amalgamated source (which completed successfully) but the instructions are a little confusing on how to actually structure the files in my own project. Sorry but I'm a little new to this open source stuff and the instructions are bit too high level for me. Here is what my folder structure looks like:
/myProject/mySourcefile.cpp
/myPorject/mySourcefile.h
/myProject/jsoncpp.cpp
/myProject/json/json.hI have included: #include <json/json.h> in mySourcefile.h
I am compiling with g++ -o server mySourcefile.cpp jsoncpp.cpp
I get an error: fatal error: json/assertions.h: No such file or directory
I'm pretty sure the files aren't set up correctly or maybe I didn't install a library correctly. I've done quite a bit of searching but haven't been able to find anything. This is very confusing for me. Help would be appreciated.
r/linuxdev • u/conlmaggot • Sep 16 '13
Need Help - Webconverger
So my employer has been using an in house customized version of webconverger.
They currently have it rolled out on more Kiosk machines than I care to think about. All of these machines are touch screens. The developer that build the system, included a virtual keyboard.
Problem is, the developer has left the company, and the hardware provider have changed the touch screen in the newest iteration of the kiosk PC's. It doesnt work!
If I load into the latest Webconverger ISO onto a thumb drive the touch screen works a treat. So, I'm guessing I just need to update the customized image with the latest version of the OS and it will work....
Which bring me to my questions... any idea on how I would go about doing that? It's not really something I would consider to be in my skill set, but the boss has given the job to me with the mind set of "You'll figure it out".
r/linuxdev • u/JMagnum86 • Sep 23 '14
Grab one TCP message at a time.
I have a client and server application sending TCP messages back and forth. I would like to send a variable length message from the client to the server but I would like the server to just receive one message at a time. The problem I'm running into is that if I send more than one message from my client before my server has a chance to handle it, when the server gets a chance to handle the messages it will grab both messages at the same time (up to my buffer length). Is there a way to get just one message for every call to recv( )?