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
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
—————————- 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
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
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
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
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
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
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
/*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
#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; }
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
#! /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
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