EmbLogic's Blog

RCS file: init.c,v Working file: init.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: initilize the device with init func(). —————————- revision 1.1 locked by: root; date: 2014/07/12 12:01:39; author: root; state: Exp; Initial revision =============================================================================

Posted in Uncategorized | Leave a comment

RCS file: cleanup.c,v Working file: cleanup.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: use kree and delete and unregister the device. —————————- revision 1.1 locked by: root; date: 2014/07/12 12:01:39; author: root; state: Exp; Initial revision =============================================================================

Posted in Uncategorized | Leave a comment

RCS file: open.c,v Working file: open.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: check the modes of node for access it for write data in device and read data from device. —————————- revision 1.1 locked by: root; date: 2014/07/12 12:01:39; author: root; state: Exp; Initial revision =============================================================================

Posted in Uncategorized | Leave a comment

RCS file: trim.c,v Working file: trim.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: trim the whole device step by step. —————————- revision 1.1 locked by: root; date: 2014/07/12 12:01:39; author: root; state: Exp; Initial revision =============================================================================

Posted in Uncategorized | Leave a comment

RCS file: create_scullqset.c,v Working file: create_scullqset.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: create the all scullqsets according to the requriement. —————————- revision 1.1 locked by: root; date: 2014/07/12 12:01:39; author: root; state: Exp; Initial revision =============================================================================

Posted in Uncategorized | Leave a comment

RCS file: create_qset.c,v Working file: create_qset.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: create qsets. —————————- revision 1.1 locked by: root; date: 2014/07/12 12:01:39; author: root; state: Exp; Initial revision =============================================================================

Posted in Uncategorized | Leave a comment

RCS file: create_quntum.c,v Working file: create_quntum.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: create multiple quntums. —————————- revision 1.1 locked by: root; date: 2014/07/12 12:01:39; author: root; state: Exp; Initial revision =============================================================================

Posted in Uncategorized | Leave a comment

RCS file: write.c,v Working file: write.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: write the data in multiple quntums ,qsets,scullqsets. —————————- revision 1.1 locked by: root; date: 2014/07/12 12:01:39; author: root; state: Exp; Initial revision =============================================================================

Posted in Uncategorized | Leave a comment

RCS file: read.c,v Working file: read.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: read the data from the device. —————————- revision 1.1 locked by: root; date: 2014/07/12 12:01:39; author: root; state: Exp; Initial revision =============================================================================

Posted in Uncategorized | Leave a comment

RCS file: llseek.c,v Working file: llseek.c head: branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 0 description: use lseek for read user defined position of device. =============================================================================

Posted in Uncategorized | Leave a comment

RCS file: app.c,v Working file: app.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: create application for access the data from kernal space to user space through the driver. #include<stdio.h> 2 #include<stdlib.h> 3 #include<fcntl.h> 4 #include<string.h> 5 int main() 6 { 7 int ret; 8 int a; 9 int fd,rfd; 10 int len; 11 char rch[600]={0}; 12 char ch[]=”##### WELCOME MY CLIENT IN MY KERNEL SPACE FOR WRITE OPERATION ######HELLO KERNEL ARE YOU READY FOR WRITE THE DATA IN DATABASE ######0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ9876543210##################################################################################################################### ###########################################################################################################################################################################

Posted in Uncategorized | Leave a comment

RCS file: 1st.cpp,v Working file: 1st.cpp head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: addtion, subtraction,multiplication,divion, in c++ using class . —————————- revision 1.1 locked by: root; date: 2014/07/14 05:01:53; author: root; state: Exp; Initial revision =============================================================================

Posted in Uncategorized | Leave a comment

RCS file: ./linklist1.c,v
Working file: ./linklist1.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
make a struct for linklist and defined three pointers start,prev,end .
data store more than 10 bytes in single node.
create multiple node.
—————————-
revision 1.1    locked by: root;
date: 2014/07/15 04:51:16;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

RCS file: ./open.c,v
Working file: ./open.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
make and upgrade ls command use of alphasort() func ,also count the entries of file by use of scandir() function , also print all files of current directory by dir.h
—————————-
revision 1.1    locked by: root;
date: 2014/07/15 04:37:19;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

function of strcmp

1 #include<stdio.h>
2 #include<stdlib.h>
3
4 int stcmp(char *str1 ,char *str2)
5 {
6         int dif,i=0;
7         while(str1[i]!=”||str2[i]!=”)
8         {
9                  dif=(str1[i]-str2[i]);
10                 if(dif!=0)
11                 {
12                   break;
13                 }
14                 i++;
15         }
16         if(dif>0)
17         {
18                  printf(“-%d”,dif);
19         }
20         else
21         {
22                 if(dif<0)
23                 {
24                 printf(“%d”,dif);
25                 }
26                 else
27                 {
28                         printf(“0″);
29                 }
30         }
31         }
32
33 main()
34 {
35
36
37         stcmp(“bcd”,”abc”);
38 }

Posted in Uncategorized | Leave a comment