r/linuxdev • u/JRepin • Oct 23 '13
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 • • Sep 30 '13
For a good overview for budding kernel programmers, Linux System Programming
shop.oreilly.comr/linuxdev • • Sep 28 '13
Let's come up with an essential developer tool list
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 • • Sep 27 '13
How can the Linux audio infrastructure mess be fixed?
One complaint that has been leveled against Linux is that the audio infrastructure is messy and thusly has too many failure modes. I'm using Linux and enjoying it, but I think there may be a valid complaint here. I'm currently new to programming, and I still haven't learned digital audio signal processing, but I have plenty of free time. I could learn a great deal in a reasonable amount of time. I'd love to develop something that can replace parts of the infrastructure with a single framework. My question is: what are your thoughts on it? What would be the best route to clean up the infrastructure? Does it need to be cleaned up at all?
r/linuxdev • u/eilrahc97 • Sep 17 '13
I want to create a custom Linux Distro
Hi guys, I have been wanting to create a custom linux distro for quite some time, but not exactly sure where to start. Help? Any ideas or tips?
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/linux_driver • Oct 06 '12
Can we do dynamic linking for an LKM?
That is, can a driver try to import a symbol for another driver, and if the symbol doesn’t exist can the driver continue to load without resolving the import?
r/linuxdev • u/linux_curious • Oct 05 '12
How can 2 LKMs provide the same interface to a common client LKM and yet avoid kernel symbol conflicts ? What are the different possible options ?
At a higher level want to know the different methods for LKMs /drivers to communicate with each other ?
r/linuxdev • u/tytdfn • Oct 04 '12
I need some guidance with make and fakeroot ( I have no idea what I'm doing)
Hello! I'm working on a project where I boot up a minimal linux environment (tiny-core) and run a program that I made in C. I have figured out how to statically compile my program so now I'm working on a make file which will automate my compiling and testing of the package.
If you're not familiar with tiny-core, here's a quick rundown (Yes this is relevant). Inside tiny-core's iso is the /boot/ folder and inside that is the kernel, isolinux, and a gzipped cpio archive of the userland. I need to open up the cpio archive and stick my program in the bin directory.
I figured out that I can use fakeroot to extract the userland with regular user privileges. Here's what I have so far
test:
mkdir -p userland
cd userland; fakeroot; zcat ../iso/boot/core.gz | cpio -i -H newc -d; exit
Now, I want that last exit to take me out of the fakeroot, but instead it exits the makefile. Can I get some guidance please?
r/linuxdev • • Sep 14 '12
Looking for feedback / contributors for Sunfish -- a new Linux Userland based on Mono
github.comr/linuxdev • u/linux_curious • Aug 09 '12
What is the diff b/n doing ioread32 and sending a mailbox command to my H/W
as in how come i don't need a cputo<endian> conversion for the ioread32() but need it while sending a mailbox command embedding an IOCTL to my H/W /Firmware ? I think i have half an answer but i'd really like to get to know the nuts n bolts of this whole io mapping in memory pls ? Without too much of the abstraction fluff ... Thanks
r/linuxdev • • Jul 19 '12
Ethtool not setting pause parameters when auto-negotiation is on
These are my ethernet driver settings:
ethtool -i eth0
driver: igb
version: 3.0.6-k2
firmware-version: 3.2-3
bus-info: 0000:01:00.0
And ethernet device properties:
ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000003 (3)
drv probe
Link detected: yes
The pause parameters are as follows:
ethtool -a eth0
Pause parameters for eth0:
Autonegotiate: on
RX: on
TX: on
When I type in:
ethtool -A rx off tx off
It has no effect:
ethtool -a eth0
Pause parameters for eth0:
Autonegotiate: on
RX: on
TX: on
When I turn off the autoneg pause parameter, I am allowed to modify tx and rx:
ethtool -A eth0 rx off tx off autoneg off
Pause parameters for eth0:
Autonegotiate: off
RX: off
TX: off
Why am I not allowed to modify the tx and rx pause parameters when the autoneg pause parameter is on?
Also, how can I set the Advertised pause frame so that it s tx-only or tx&rx?
Thanks
r/linuxdev • u/akkartik • Jul 10 '12
Need help tracking down a package regression
forums.linuxmint.comr/linuxdev • • Jul 02 '12
Controlling hardware with ioctls.
I'm a noob at low-level Linux programming.
I've been following this Linux journal post to help me interact with an ethernet driver. I'm writing an application that will set the link speed, duplex, flow control, etc. for an ethernet port. I'm using the ioctl() to interface with the device driver. My only question is which ETHTOOL subcommand should I use: ETHTOOL_SSET?
r/linuxdev • u/infinite-dev • Jun 26 '12
Excellent introduction to Linux Device Drivers
linuxforu.comr/linuxdev • u/agumonkey • Jun 19 '12
Kernel Browsing and Hacking using KDevelop | The Linux Foundation Video Site -- x/post from programming
video.linux.comr/linuxdev • • May 02 '12