EmbLogic's Blog

Category Archives: Uncategorized

char-driver

char driver RCS file: cleanup.c,v Working file: cleanup.c head: 1.25 branch: locks: strict root: 1.25 access list: symbolic names: keyword substitution: kv total revisions: 25; selected revisions: 25 description: This cleanup() is use to remove the driver from kernel. —————————- … Continue reading

Posted in Uncategorized | Leave a comment

char_driver

logfile

Posted in Uncategorized | Leave a comment

char driver ioctl

summary 1-kernel documentation .txt file if not available in path usr/src/kernel/kernel version/documentation then search online http:kernel.org/doc 2-prototype of unlocked ioctl is in fs.h file 3-_IO _IOR etc is available in path usr/src/kernel/kernel version/include/uapi/asm-generic -ioctl.h 4.in user space second arrgument of … Continue reading

Posted in Uncategorized | Leave a comment

char driver

—————————- revision 1.3 date: 2016/03/11 17:34:14;  author: root;  state: Exp;  lines: +5 -0 *** empty log message *** —————————- revision 1.2 date: 2016/03/11 17:29:28;  author: root;  state: Exp;  lines: +1 -1 *** empty log message *** —————————- revision 1.1 date: … Continue reading

Posted in Uncategorized | Leave a comment

Using dd command to Convert a file

dd—Convert a file while copying it (data dumper) Syntax: dd [—help] [—version] [if=file] [of=file] [ibs=bytes] [obs=bytes] [bs=bytes] [cbs=bytes] [skip=blocks] [seek=blocks] [count=blocks] [conv={ascii, ebcdic, ibm, block, unblock, lcase, ucase, swab, noerror, notrunc, sync}] DESCRIPTION: The GNU version of dd copies a file … Continue reading

Posted in Project 1: A Linux Administration based Project, Project 2: Multiple Data Compression and Encryption, Uncategorized | Leave a comment

Character_driver

RCS file: cleanup.c,v Working file: cleanup.c head: 1.25 branch: locks: strict root: 1.25 access list: symbolic names: keyword substitution: kv total revisions: 25; selected revisions: 25 description: This cleanup() is use to remove the driver from kernel. —————————- revision 1.25 … Continue reading

Posted in Uncategorized | Leave a comment

Single Client Server Communication Using Socket In Using UNIX_AF With Use The Shell Script

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1;     selected revisions: 1 description: In file all header files included this project related . —————————- revision 1.1 date: 2016/02/28 … Continue reading

Posted in Uncategorized | Leave a comment

Basic program for socket_inet

SERVER #include<stdio.h> #include<stdlib.h> #include<linux/types.h> #include<linux/socket.h> #include<sys/un.h> #include<netinet/in.h> int main(int argc,char *argv[]) { int sfd,s_len,b,a,l,nfd,c_len,spn; struct sockaddr_in addr; struct sockaddr_in c_addr; sfd = socket(AF_INET,SOCK_STREAM,0); spn = atoi(argv[1]);//for command line arrguments //int socket(int domain, int type, int protocol);3rd arrguments 0 for defalut … Continue reading

Posted in Uncategorized | Leave a comment

Installing office in fedora

For 32 bit systems #wget http://download.documentfoundation.org/libreoffice/stable/5.0.4/rpm/x86/LibreOffice_5.0.4_Linux_x86_rpm.tar.gz For 64-bit systems #wget http://download.documentfoundation.org/libreoffice/stable/5.0.4/rpm/x86_64/LibreOffice_5.0.4_Linux_x86-64_rpm.tar.gz After this  all steps are common #tar -xvf LibreOffice_5.0.4_Linux_x86_rpm.tar.gz #cd LibreOffice_5.0.4.2_Linux_x86_rpm/ #yum localinstall RPMS/*.rpm You can use these steps in any other RPM based distribution but keeping in mind … Continue reading

Posted in Project 00: Linux System / Network Administration, Uncategorized | Leave a comment

tool chain compilation command

Toolchains have a loose name convention like arch[-vendor][-os]-abi. arch is for architecture: arm, mips, x86, i686… vendor is tool chain supplier: apple, os is for operating system: linux, none (bare metal) abi is for application binary interface convention: eabi, gnueabi, … Continue reading

Posted in Uncategorized | Leave a comment

merge sort

/*Merge sort is a divide and conquer sorting technique in which we divide big problems into small i.e. in this we divide a big array into small arrays and after sorting these arrays we merge it and after merging it … Continue reading

Posted in Uncategorized | Leave a comment

SWAP THE THREE VALUES WITHOUT USING FOURTH VARIABLE

#include<stdio.h> int main() { int a=5; int b=6; int c=7; a^=b,b^=a,a^=b; b^=c,c^=b,b^=c; printf(“a= %d\n”,a); printf(“b= %d\n”,b); printf(“c= %d\n”,c); return 0; }

Posted in Uncategorized | Leave a comment

SEVER MULTIPLE CLIENT USING PIPES WITH USE A SHELL SCRIPT

RCS file: header.h,v Working file: header.h head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2;     selected revisions: 2 description: In file a include a header files related the this project —————————- revision 1.2 date: … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC, Uncategorized | Leave a comment

Shell Script for Character_Device_Driver

#! /bin/bash cheakout_l() { echo “Do you want to look the all file for further editing [y/n]” read responce if [ $responce='y' ] then for file in $(ls *.h,v *.c,v) do co -l $file done fi make clean exit 0 … Continue reading

Posted in Uncategorized | Leave a comment

Character_Device Driver

RCS file: application.c,v Working file: application.c head: 1.7 branch: locks: strict emblogic: 1.7 access list: symbolic names: keyword substitution: kv total revisions: 7; selected revisions: 7 description: This is a application.c file In this file control the all applications(read,write,lseek) And … Continue reading

Posted in Uncategorized | Leave a comment