I wrote this charater device driver for learning how they work.This is actually an assignment that we got today. . Prof. TS Reddy from JNTU helped me to debug the code. I am planning to make a tutorial on it once I reach home. The course is becoming more and more exciting. The internet access… Continue reading Learning device drivers
Month: February 2009
Generating number sequences in shell scripts
I learned this technique from a fellow participant . $ yes |nl |head -100 |cut -f1 You can remove the new lines as below. $ yes |nl |head -100 | cut -f1| tr ‘\n’ ‘\t’ Cool. Otherwise, my course is progressing well. I wrote a simple file transfer daemon and implemented the client.. Now, I… Continue reading Generating number sequences in shell scripts
Update from prepare future
It was pretty heavy work for 2 days. Yesterday, I was taught about file io and related system calls followed by environment variables , things like parsing command lines etc. I could not finish all the exercises as I went out to see the city. Took a local bus tio HiTech city and then caught… Continue reading Update from prepare future
Learning Pthreads
I am beginning to enjoy the Prepare Future program on Linux internal and driver development. Today’s class was about pthreads. I had some prior experience on pthreads library while at CUSAT. It was refreshed today. Pthreads is a user space library for manipulating threads. Here is what we did today. First we wrote a small… Continue reading Learning Pthreads
How to create static and dynamic libraries with gcc
This is an exercise I did today. I am documenting it for my own reference. The problem was simple. Create a library with functions. add(int,int) and sub (int,int) and then use the library in another program. Here is the code /*add.c*/ #include “a.h” int add( int a,int b) { return (a+b); } int sub (int… Continue reading How to create static and dynamic libraries with gcc