This site works best with JavaScript enabled
Sign In
Discussions
Activity
Sign In
Previous Results
Installing kernel 2.6.xx
KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd)$(if $(KBUILD_OUTPUT),, \118 - $(error output directory "$(saved-output)" does not exist))
by
hitesh.arora1997
October 2020
000 Linux System Administration
permalink
Introduction to C programming
Process Shows in the Block Diagram gives us the overview of how the Compliation and execution process takes place.
Step by Step process is as follows :
1.The process starts from the Shell we have to give command gcc "our file name" say g…
by
tyagivaibhav92
September 2020
001 C Programming, Data Structures
permalink
01.Introduction To Shells And Shell Scripts
All queries, discussions, updates and clarifications related to 01.Introduction To Shells And Shell Scriptsshould be posted here.
by
spatlou
September 2020
011 Shell Scripting using Bash
permalink
An Introduction to Device Drivers
MakefileINSTALL_DIR=modulesifneq (${KERNELRELEASE},)
obj-m :=cddMyDev.o
cddMyDev-objs := init.o clean.o
else KERNELDIR ?= /lib/modules/4.16.16/build PWD := ${shell pwd}
default: ${MAKE} -C ${KERNELDIR} M=${PWD} mod…
by
vermaabhinav30
April 2020
005 Character Device Drivers Development
permalink
Makefile for Building Character Device Driver
INSTALL_DIR=modulesifneq (${KERNELRELEASE},) obj-m := mycdd.o
mycdd-objs := initFunc.o cleanup.o
else KERNELDIR ?= /lib/modules/4.13.12/build# KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd)default:…
by
spatlou
October 2019
005 Character Device Drivers Development
permalink
Floating Points on Bash
How to use floating point numbers in shell scripting using Bash
by
spatlou
December 2017
011 Shell Scripting using Bash
permalink
Queries about Shell Scripting
How to determine if certain username is present on Linux system or not?
by
spatlou
December 2017
011 Shell Scripting using Bash
permalink
Superuser login issue (ssh) after chsh
I wanted to change my default Fedora bash shell to ssh (as a superuser).
So, using chsh command gave the address /bin/ssh. Logout the
superuser. But after login as su, I am unable to login and getting this
issue:-
/*Issue*/
usage:…
by
bhardwaj.charak
December 2017
Query
permalink
B97 : Project.03 Linux System Programming using Processes, IPC, Sync & Threads
Difference between system() and fork()system() executes a command interpreter i.e a shell which is slower than the fork() as fork() is direct access,second is it might behave differently on different systems.A system() does create a child process wh…
by
saurabh.hmr009
September 2017
Pravjot Sir Classes
permalink
Batch:97 ARM
Four Basic Elements of Embedded Linux:boot loadertool chainkerneluser-space(Root File System)
Tool chain consists of at-least:The GNU Binary Utilities, or binutils, are a set of programming tools for creating and managing binary programs, object fi…
by
somanshu765
August 2017
Pravjot Sir Classes
permalink
B97 : Device Driver Development
Guys if you do not find kernel logs on path /var/log/messages or /var/log/X.org.2.log kindly use command journalctl to display kernel logs on shell.
However you can also view the same logs in /var/log/messages but messages file won't appear t…
by
vishwajeet.gaur1989
July 2017
Pravjot Sir Classes
permalink
B97 : Device Driver Development
Basic MAKEFILE that we will be using in our project :
INSTALL_DIR=modules
ifneq (${KERNELRELEASE},)
obj-m :=lkm97.o
lkm97-objs := init.o clean.o
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
de…
by
sankalpnegi2310
July 2017
Pravjot Sir Classes
permalink
B97 : Project.03 Linux System Programming using Processes, IPC, Sync & Threads
What happens when we executes a command?
When command is given then UNIX OS will fork the shell will create a new process and will execute the command using exec command. something like suppose you gav…
by
kuldeep_ecb
June 2017
Pravjot Sir Classes
permalink
B97 : C, Pointers and Data Structures
Solving getchar issue using terminals
Issue with getChar can also be resolved by controlling terminals. By default our shell works in canonical mode(icanon), however we can use non-canonical mode (-icanon) and lim…
by
vishwajeet.gaur1989
June 2017
Pravjot Sir Classes
permalink
Embedded Lovers : B 97 :Work log /Useful Information only --NO QUERIES PLZ--
Generating an event when new file or Directory is created
Let us automate some of the things which we always need in our source code directory :-
We have always noticed that whenever we create any project we need rcs file in our directory of sourc…
by
vishwajeet.gaur1989
June 2017
Query
permalink
B97 : Project.03 Linux System Programming using Processes, IPC, Sync & Threads
Process Replacement or Process Hijacking
Using Fork we were able to create a duplicate copy of a process and named it as a child process which was not having a separate Process Context. However consider a situation in which a us…
by
vishwajeet.gaur1989
May 2017
Pravjot Sir Classes
permalink
B97 : Project.03 Linux System Programming using Processes, IPC, Sync & Threads
-- > wait() System Call
by
vishwajeet.gaur1989
May 2017
Pravjot Sir Classes
permalink
B97 : Project.03 Linux System Programming using Processes, IPC, Sync & Threads
Duplicating a Process using fork() sys call [PART -2]
No process can commit suicide in LINUX.Every process is terminated by its parent only, when the parent executes the termination section of the child process.
When the parent finished before …
by
sankalpnegi2310
May 2017
Pravjot Sir Classes
permalink
Process Execution and Termination Between Parent and Child(orphan child)
When ever we are running two process together using fork() in our main program , and if parent process finishes before child process , Parent process is terminated by shell and Child is adopted by INIT process whose PID is 1 so child PPID also becom…
by
ashutomar07
May 2017
Query
permalink
B97 : Project.03 Linux System Programming using Processes, IPC, Sync & Threads
@ all..Agreed, orphan child process adoption depends on kernel however I wanted to know why Shell terminates parent before parent's child execution is complete. Since parent created child so parent process must consider all its statement finis…
by
vishwajeet.gaur1989
May 2017
Pravjot Sir Classes
permalink
Powered by
Vanilla
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership