EmbLogic's Blog

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 calling the all function.
—————————-
revision 1.7 locked by: emblogic;
date: 2016/01/28 07:48:54; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.6
date: 2016/01/28 07:43:24; author: emblogic; state: Exp; lines: +1 -1
mainmenu call in loop
—————————-
revision 1.5
date: 2016/01/28 07:40:08; author: emblogic; state: Exp; lines: +3 -3
first call the writer
—————————-
revision 1.4
date: 2016/01/28 07:37:16; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.3
revision 1.2
date: 2016/01/28 06:55:43; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.1
date: 2016/01/28 06:28:04; author: emblogic; state: Exp;
Initial revision
=============================================================================

RCS file: clean.c,v
Working file: clean.c
head: 1.35
branch:
locks: strict
emblogic: 1.35
access list:
symbolic names:
keyword substitution: kv
total revisions: 36; selected revisions: 36
description:
This is a clean.c file.
In this file unregister the driver in the kernel.
—————————-
revision 1.35 locked by: emblogic;
date: 2016/01/22 04:33:11; author: emblogic; state: Exp; lines: +0 -2
remove the comments
—————————-
revision 1.34
date: 2016/01/21 09:07:11; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.33
date: 2016/01/21 08:36:40; author: emblogic; state: Exp; lines: +2 -0
revision 1.12
date: 2016/01/08 11:08:26; author: emblogic; state: Exp; lines: +1 -1
Disconnect the struct cdev from device table by cdev_del(struct cdev*).
—————————-
revision 1.11
date: 2016/01/08 08:26:06; author: emblogic; state: Exp; lines: +1 -1
put the camments
—————————-
revision 1.10
date: 2016/01/08 07:50:20; author: emblogic; state: Exp; lines: +3 -3
use datatype in extern statement
—————————-
revision 1.9
date: 2016/01/08 07:46:56; author: emblogic; state: Exp; lines: +14 -1
replace the unregister _chrdev function to unregister_chrdev_region
—————————-
revision 1.8
date: 2016/01/07 12:05:47; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2016/01/07 12:01:14; author: emblogic; state: Exp; lines: +1 -0
printk statement in if condition
—————————-
revision 1.6
date: 2016/01/07 10:47:07; author: emblogic; state: Exp; lines: +1 -1
Add the macro DEV_NAME.
,
—————————-
Add the macro DEV_NAME.
,
—————————-
revision 1.5
date: 2016/01/07 09:50:39; author: emblogic; state: Exp; lines: +1 -1
use extern in major_no
,
—————————-
revision 1.4
date: 2016/01/07 09:38:17; author: emblogic; state: Exp; lines: +1 -1
declare the mojor_no in declaration.h file using extern.
—————————-
revision 1.3
date: 2016/01/07 06:50:54; author: emblogic; state: Exp; lines: +1 -1
remove the spelling mistake
—————————-
revision 1.2
date: 2016/01/07 06:48:38; author: emblogic; state: Exp; lines: +1 -1
remove the spelling mistake
—————————-
revision 1.1
date: 2016/01/07 06:21:38; author: emblogic; state: Exp;
Initial revision
—————————-
revision 1.31.1.1
date: 2016/01/10 10:30:20; author: root; state: Exp; lines: +1 -1
*** empty log message ***
RCS file: create_scull.c,v
Working file: create_scull.c
head: 1.11
branch:
locks: strict
emblogic: 1.11
access list:
symbolic names:
keyword substitution: kv
total revisions: 11; selected revisions: 11
description:
This is a creatr_scull.c file
in this file allcate the linklist foe Qset(number of items)
and return the address of linklist(starding address of linklist)
—————————-
revision 1.11 locked by: emblogic;
date: 2016/01/24 06:42:02; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2016/01/24 06:40:10; author: emblogic; state: Exp; lines: +3 -5
*** empty log message ***
—————————-
revision 1.9
date: 2016/01/24 05:44:57; author: emblogic; state: Exp; lines: +0 -3
*** empty log message ***
—————————-
revision 1.8
date: 2016/01/24 05:40:28; author: emblogic; state: Exp; lines: +3 -3
*** empty log message ***
revision 1.4
date: 2016/01/22 04:33:40; author: emblogic; state: Exp; lines: +1 -1
calculate the number of itom and design the scull
firstly create itoms then after create the qsetarray and in qsetarray create the quantum for each
—————————-
revision 1.3
date: 2016/01/21 08:36:42; author: emblogic; state: Exp; lines: +29 -13
*** empty log message ***
—————————-
revision 1.2
date: 2016/01/21 07:17:28; author: emblogic; state: Exp; lines: +85 -44
create the scull
—————————-
revision 1.1
date: 2016/01/17 12:00:45; author: emblogic; state: Exp;
Initial revision
=============================================================================

RCS file: declaration.h,v
Working file: declaration.h
head: 1.26
branch:
locks: strict
emblogic: 1.26
access list:
symbolic names:
keyword substitution: kv
total revisions: 26; selected revisions: 26
description:
This file is declaration.h file.
This file is containing the variables and constant.
—————————-
revision 1.26 locked by: emblogic;
date: 2016/01/29 06:35:30; author: emblogic; state: Exp; lines: +1 -0
For syschonization operation use samaphore .
Add the semaphore structure in Dev
—————————-
revision 1.25
date: 2016/01/25 09:42:33; author: emblogic; state: Exp; lines: +2 -0
Add the llseek prototype
—————————-
revision 1.24
date: 2016/01/25 07:06:58; author: emblogic; state: Exp; lines: +0 -1
romove the extern qset because use only dev
—————————-
revision 1.23
date: 2016/01/25 04:16:24; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.22
date: 2016/01/24 12:09:00; author: emblogic; state: Exp; lines: +1 -0
extern the Qset variable
—————————-
revision 1.21
date: 2016/01/24 10:10:37; author: emblogic; state: Exp; lines: +1 -0
Add the prototype of read call
—————————-
revision 1.20
date: 2016/01/22 04:35:45; author: emblogic; state: Exp; lines: +3 -15
revision 1.23
date: 2016/01/25 04:16:24; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.22
date: 2016/01/24 12:09:00; author: emblogic; state: Exp; lines: +1 -0
extern the Qset variable
—————————-
revision 1.21
date: 2016/01/24 10:10:37; author: emblogic; state: Exp; lines: +1 -0
Add the prototype of read call
—————————-
revision 1.20
date: 2016/01/22 04:35:45; author: emblogic; state: Exp; lines: +3 -15
remove the comments and sequence the all lines
add the create scull prototype and write_dev prototype
—————————-
revision 1.15
date: 2016/01/11 08:32:24; author: emblogic; state: Exp; lines: +2 -2
constant structure pass in open_dec(inode,file)
—————————-
revision 1.14
date: 2016/01/11 07:35:11; author: emblogic; state: Exp; lines: +2 -0
declare the open_dev function for open the device
—————————-
revision 1.13
date: 2016/01/11 06:30:14; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.12
date: 2016/01/11 04:14:02; author: emblogic; state: Exp; lines: +2 -2
add the NOD and NOD_T variables for take the input from terminal.
—————————-
revision 1.11
date: 2016/01/10 05:18:28; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2016/01/10 05:13:42; author: emblogic; state: Exp; lines: +1 -1
remove the dev_t type variable(new_devid)
—————————-
revision 1.9
date: 2016/01/08 13:41:23; author: emblogic; state: Exp; lines: +4 -0
revision 1.8
date: 2016/01/08 13:08:50; author: emblogic; state: Exp; lines: +1 -0
declare the new kernel datatype dev_t new_devid.
—————————-
revision 1.7
date: 2016/01/08 10:24:38; author: emblogic; state: Exp; lines: +3 -1
*** empty log message ***
—————————-
revision 1.6
date: 2016/01/08 10:17:54; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2016/01/08 10:09:25; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2016/01/08 09:56:38; author: emblogic; state: Exp; lines: +10 -0
taking the structure(Qset,DEV)for scull mapping
—————————-
revision 1.3
date: 2016/01/08 07:19:38; author: emblogic; state: Exp; lines: +1 -0
Add the dev_t type variable for alloc_chrdev_region
—————————-
revision 1.2
date: 2016/01/07 09:40:29; author: emblogic; state: Exp; lines: +1 -0
declare the major_no.
—————————-
revision 1.1
date: 2016/01/07 06:25:49; author: emblogic; state: Exp;
RCS file: file_operation.h,v
Working file: file_operation.h
head: 1.6
branch:
locks: strict
emblogic: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
This file is file operation file .
Its containing the all operation read,write,delete,open….
—————————-
revision 1.6 locked by: emblogic;
date: 2016/01/25 09:42:59; author: emblogic; state: Exp; lines: +2 -1
Add the llseek call
—————————-
revision 1.5
date: 2016/01/24 11:24:20; author: emblogic; state: Exp; lines: +2 -1
Add the read call and maping own call
—————————-
revision 1.4
date: 2016/01/22 04:36:36; author: emblogic; state: Exp; lines: +0 -1
add the trim dev function for flush the data
revision 1.5
date: 2016/01/24 11:24:20; author: emblogic; state: Exp; lines: +2 -1
Add the read call and maping own call
—————————-
revision 1.4
date: 2016/01/22 04:36:36; author: emblogic; state: Exp; lines: +0 -1
add the trim dev function for flush the data
—————————-
revision 1.3
date: 2016/01/21 07:18:21; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2016/01/17 12:04:17; author: emblogic; state: Exp; lines: +3 -2
add the more operation like write
—————————-
revision 1.1
date: 2016/01/15 09:42:07; author: emblogic; state: Exp;
Initial revision
RCS file: header_apps.h,v
Working file: header_apps.h
head: 1.3
branch:
locks: strict
emblogic: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This file is header_apps,c
In this file put the all header for application
—————————-
revision 1.3 locked by: emblogic;
date: 2016/01/30 05:45:05; author: emblogic; state: Exp; lines: +1 -1
set the arguments in lseek functin
—————————-
revision 1.2
date: 2016/01/28 06:55:53; author: emblogic; state: Exp; lines: +1 -0
include the header stdlib for exit function
—————————-
revision 1.1
date: 2016/01/28 06:29:34; author: emblogic; state: Exp;
Initial revision
=============================================================================
RCS file: header.h,v
Working file: header.h
head: 1.26
branch:
locks: strict
emblogic: 1.26
access list:
symbolic names:
keyword substitution: kv
total revisions: 26; selected revisions: 26
description:
This file is a header.h file.
This file is containing the all require header file and macro.
—————————-
revision 1.26 locked by: emblogic;
date: 2016/01/29 06:36:53; author: emblogic; state: Exp; lines: +1 -0
include the header linex/semaphore
—————————-
revision 1.25
date: 2016/01/27 11:37:39; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.24
date: 2016/01/22 05:07:58; author: emblogic; state: Exp; lines: +1 -0
include the header file asm-gereric/uaccess.h for copy from user
—————————-
revision 1.23
date: 2016/01/22 04:37:02; author: emblogic; state: Exp; lines: +3 -3
Maintain the sequence the header file
revision 1.22
date: 2016/01/11 08:33:37; author: emblogic; state: Exp; lines: +2 -0
include the open and release operations
—————————-
revision 1.21
date: 2016/01/11 04:14:50; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.20
date: 2016/01/11 03:48:46; author: emblogic; state: Exp; lines: +1 -4
remove the macro PRINT
—————————-
revision 1.19
date: 2016/01/11 03:44:31; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.18
date: 2016/01/10 11:58:02; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2016/01/10 06:08:14; author: emblogic; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.16
date: 2016/01/09 11:33:15; author: emblogic; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.15
date: 2016/01/09 11:17:00; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.14
date: 2016/01/09 09:00:55; author: emblogic; state: Exp; lines: +1 -1
nod is 5
;
—————————-
revision 1.13
date: 2016/01/09 08:59:22; author: emblogic; state: Exp; lines: +13 -1
include the macro for cdev structure
—————————-
revision 1.12
date: 2016/01/09 05:34:29; author: emblogic; state: Exp; lines: +1 -1
for one NOD
—————————-
revision 1.11
date: 2016/01/09 04:18:45; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2016/01/08 11:13:43; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2016/01/08 11:09:52; author: emblogic; state: Exp; lines: +1 -0
include the moduleparam header file for cdev_init()function.
—————————-
revision 1.8
date: 2016/01/08 09:57:32; author: emblogic; state: Exp; lines: +2 -0
Include the header file for kmalloc(slab.h)
Include the header file for scull (cdev.h)
revision 1.6
date: 2016/01/07 12:06:41; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2016/01/07 12:04:05; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2016/01/07 12:02:11; author: emblogic; state: Exp; lines: +3 -0
Add the PRINT macro
—————————-
revision 1.3
date: 2016/01/07 10:32:19; author: emblogic; state: Exp; lines: +2 -2
Add n
—————————-
revision 1.2
date: 2016/01/07 10:23:27; author: emblogic; state: Exp; lines: +6 -0
Use the macros DEV_NAME and MINOR_NO.
—————————-
revision 1.1
date: 2016/01/07 06:33:30; author: emblogic; state: Exp;
Initial revision
=============================================================================

RCS file: init.c,v
Working file: init.c
head: 1.62
branch:
locks: strict
emblogic: 1.62
access list:
symbolic names:
keyword substitution: kv
total revisions: 62; selected revisions: 62
description:
This file is init.c file.
In this file, insert and register the driver in the kernal.
—————————-
revision 1.62 locked by: emblogic;
date: 2016/01/29 11:30:00; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.61
date: 2016/01/29 11:21:21; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.60
date: 2016/01/29 06:37:34; author: emblogic; state: Exp; lines: +1 -0
declaration and initization the semaphote
—————————-
revision 1.59
date: 2016/01/22 04:37:42; author: emblogic; state: Exp; lines: +4 -3
recall the value of devid
—————————-
revision 1.58
date: 2016/01/21 09:10:57; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.57
date: 2016/01/21 09:10:14; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.56
date: 2016/01/21 09:07:13; author: emblogic; state: Exp; lines: +7 -5
*** empty log message ***
—————————-
revision 1.55
date: 2016/01/11 06:53:44; author: emblogic; state: Exp; lines: +2 -3
*** empty log message ***
—————————-
revision 1.54
date: 2016/01/11 06:35:30; author: emblogic; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.53
date: 2016/01/11 06:33:49; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.52
date: 2016/01/11 06:30:17; author: emblogic; state: Exp; lines: +2 -3
*** empty log message ***
—————————-
revision 1.34
date: 2016/01/09 09:43:25; author: emblogic; state: Exp; lines: +2 -2
replace new_devid to devid
—————————-
revision 1.33
date: 2016/01/09 08:37:40; author: emblogic; state: Exp; lines: +11 -3
add the structure elements(cdev
—————————-
revision 1.32
date: 2016/01/09 04:22:11; author: emblogic; state: Exp; lines: +1 -1
correct the third arguments of cdev_add by 1
—————————-
revision 1.31
date: 2016/01/09 04:18:50; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.30
date: 2016/01/08 13:42:02; author: emblogic; state: Exp; lines: +17 -15
use the number of device more then one.
using for loop.
—————————-
revision 1.29
date: 2016/01/08 13:13:27; author: emblogic; state: Exp; lines: +4 -0
*** empty log message ***
—————————-
revision 1.28
date: 2016/01/08 13:09:56; author: emblogic; state: Exp; lines: +5 -0
use the MKDEV macro for find out the new minor and major no.
—————————-
revision 1.27
date: 2016/01/08 12:14:17; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
revision 1.26
date: 2016/01/08 12:11:52; author: emblogic; state: Exp; lines: +1 -0
add the cdev_init ()
—————————-
revision 1.25
date: 2016/01/08 11:55:57; author: emblogic; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.24
date: 2016/01/08 11:54:03; author: emblogic; state: Exp; lines: +4 -0
*** empty log message ***
—————————-
revision 1.23
date: 2016/01/08 11:32:48; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.22
date: 2016/01/08 11:24:02; author: emblogic; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.21
date: 2016/01/08 11:11:01; author: emblogic; state: Exp; lines: +10 -1
added the struct cdev in device table by cdev_add() function.
—————————-
revision 1.20
date: 2016/01/08 10:38:07; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***added the struct cdev in device table by cdev_add() function.
—————————-
revision 1.20
date: 2016/01/08 10:38:07; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.19
date: 2016/01/08 10:33:14; author: emblogic; state: Exp; lines: +1 -0
useing memset for flush the scull
—————————-
revision 1.18
date: 2016/01/08 10:24:40; author: emblogic; state: Exp; lines: +9 -1
*** empty log message ***
—————————-
revision 1.17
date: 2016/01/08 10:12:54; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.16
date: 2016/01/08 10:06:00; author: emblogic; state: Exp; lines: +2 -1
decl. the struct Dev *dev
—————————-
revision 1.15
date: 2016/01/08 09:59:20; author: emblogic; state: Exp; lines: +1 -0
Get the memory in kernel by kmalloc with GFP_kernel(get memory page in kernel);
revision 1.14
date: 2016/01/08 08:26:17; author: emblogic; state: Exp; lines: +11 -9
put the camments
—————————-
revision 1.13
date: 2016/01/08 08:06:54; author: emblogic; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.12
date: 2016/01/08 07:51:50; author: emblogic; state: Exp; lines: +1 -1
print the minor_no
—————————-
revision 1.11
date: 2016/01/08 07:23:55; author: emblogic; state: Exp; lines: +27 -2
Change the register_chrdev to alloc_chrdev_region due to some region
1>in the alloc_chrdev_region no required file operation(fops) arguments.
2>Register_chrdev not cheak the preinstall driver.
3>so alwayes register the driver
register_chrdev perform in all kernel version but allco_chrdev perform only 2.6.1 to up to date kernial version.
—————————-
revision 1.10
date: 2016/01/07 12:05:50; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.9
date: 2016/01/07 12:02:32; author: emblogic; state: Exp; lines: +3 -0
printk statement in if condition
—————————-
revision 1.8
date: 2016/01/07 11:19:17; author: emblogic; state: Exp; lines: +7 -0
print the error message
revision 1.9
date: 2016/01/07 12:02:32; author: emblogic; state: Exp; lines: +3 -0
printk statement in if condition
—————————-
revision 1.8
date: 2016/01/07 11:19:17; author: emblogic; state: Exp; lines: +7 -0
print the error message
—————————-
revision 1.7
date: 2016/01/07 10:47:32; author: emblogic; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.6
date: 2016/01/07 10:24:20; author: emblogic; state: Exp; lines: +2 -1
Put the macro DEV_NAME,and MOJOR_NO.
—————————-
revision 1.5
date: 2016/01/07 10:09:50; author: emblogic; state: Exp; lines: +2 -1
use __init in initization function
—————————-
revision 1.4
date: 2016/01/07 09:48:06; author: emblogic; state: Exp; lines: +1 -0
Add the declaration header file.
—————————-
revision 1.3
date: 2016/01/07 09:40:49; author: emblogic; state: Exp; lines: +1 -1
declare the major_no in declaretion.h file using extern.
—————————-
revision 1.2
date: 2016/01/07 06:44:44; author: emblogic; state: Exp; lines: +1 -1
Add the file_operation header file
RCS file: lseek.c,v
Working file: lseek.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 lseek.c file
in this file chande the cursior position in reqire position
—————————-
revision 1.7 locked by: emblogic;
date: 2016/01/30 05:58:42; author: emblogic; state: Exp; lines: +0 -3
*** empty log message ***
—————————-
revision 1.6
date: 2016/01/30 05:56:29; author: emblogic; state: Exp; lines: +17 -14
*** empty log message ***
—————————-
revision 1.5
date: 2016/01/30 05:45:35; author: emblogic; state: Exp; lines: +21 -12
catch the fd in arguments
—————————-
RCS file: main_menu.c,v
Working file: main_menu.c
head: 1.4
branch:
locks: strict
emblogic: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
This file is main_menu.c
In this file collect the choice from user and rand applicaion file
—————————-
revision 1.4 locked by: emblogic;
date: 2016/01/28 07:19:19; author: emblogic; state: Exp; lines: +1 -1
return choice
—————————-
RCS file: open.c,v
Working file: open.c
head: 1.13
branch:
locks: strict
emblogic: 1.13
access list:
symbolic names:
keyword substitution: kv
total revisions: 13; selected revisions: 13
description:
This is open.c file
In this file try to open the application own manor
—————————-
revision 1.13 locked by: emblogic;
date: 2016/01/29 11:08:04; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.12
date: 2016/01/23 12:55:07; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.11
date: 2016/01/22 04:38:11; author: emblogic; state: Exp; lines: +3 -2
calling the trim_dev function
—————————-
revision 1.7
date: 2016/01/17 12:04:42; author: emblogic; state: Exp; lines: +8 -0
calling the function trim_dev for removing the previous data in device file and cheak the condition on device that data is avilable in device
—————————-
revision 1.6
date: 2016/01/11 11:49:22; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2016/01/11 11:12:25; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2016/01/11 10:00:11; author: emblogic; state: Exp; lines: +8 -1
*** empty log message ***
—————————-
revision 1.3
date: 2016/01/11 09:39:21; author: emblogic; state: Exp; lines: +4 -1
use container_of macro .
—————————-
revision 1.2
date: 2016/01/11 08:34:13; author: emblogic; state: Exp; lines: +4 -3
RCS file: reader.c,v
Working file: reader.c
head: 1.27
branch:
locks: strict
emblogic: 1.27
access list:
symbolic names:
keyword substitution: kv
total revisions: 27; selected revisions: 27
description:
This is a reader .c file
revision 1.2
date: 2016/01/11 09:41:25; author: emblogic; state: Exp; lines: +16 -6
this ia application file
open the node in readonly made and print the fd
—————————-
RCS file: reader_dev.c,v
Working file: reader_dev.c
head: 1.51
branch:
locks: strict
emblogic: 1.51
access list:
symbolic names:
keyword substitution: kv
total revisions: 51; selected revisions: 51
description:
This is a reader_dev.c file
In this file read the data from kernel and stor the data in user space in reader.c file
—————————-
revision 1.51 locked by: emblogic;
date: 2016/01/30 05:56:34; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.50
date: 2016/01/30 05:46:17; author: emblogic; state: Exp; lines: +1 -1
use return ERESTARTSYS
—————————-
revision 1.49
date: 2016/01/30 05:16:14; author: emblogic; state: Exp; lines: +1 -1
remove the if in semaphore
—————————-
revision 1.48
date: 2016/01/30 04:55:38; author: emblogic; state: Exp; lines: +3 -3
*** empty log message ***
————————–revision 1.42
date: 2016/01/29 06:38:21; author: emblogic; state: Exp; lines: +2 -0
use the semaphore and release the variable
—————————-
revision 1.41
date: 2016/01/28 08:07:56; author: emblogic; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.40
date: 2016/01/27 11:53:17; author: emblogic; state: Exp; lines: +1 -0
catch the data from private data to ldev
and link with dev structure qset variable
and fatch the data from dev->data_size and put in lsize
maintain the while loop according to nocsw
—————————-
revision 1.8
date: 2016/01/25 07:34:44; author: emblogic; state: Exp; lines: +9 -4
catch the address from private data to ldev and pass in copy to suer macro
—————————-
RCS file: release.c,v
Working file: release.c
head: 1.3
branch:
locks: strict
emblogic: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This file is release.c file
In this file release the application own manor
—————————-
RCS file: seek_dev.c,v
Working file: seek_dev.c
head: 1.3
branch:
locks: strict
emblogic: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This is seek_dev file
In this file llseek operation perform
—————————-
revision 1.3 locked by: emblogic;
date: 2016/01/25 09:52:04; author: emblogic; state: Exp; lines: +1 -1
Add the formal arguments
—————————-
revision 1.2
date: 2016/01/25 09:47:03; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2016/01/25 09:45:06; author: emblogic; state: Exp;
Initial revision
=============================================================================RCS file: trim_dev.c,v
Working file: trim_dev.c
head: 1.20
branch:
locks: strict
emblogic: 1.20
access list:
symbolic names:
keyword substitution: kv
total revisions: 20; selected revisions: 20
description:
this is a trim_dev.c file
In this file removing the previous data in device
triming started
In this file dealocate the memory (scull)
—————————-
revision 1.4
date: 2016/01/22 04:39:25; author: emblogic; state: Exp; lines: +12 -11
Put the header file on top and remove the undeclaration error
—————————-
RCS file: writer.c,v
Working file: writer.c
head: 1.24
branch:
locks: strict
emblogic: 1.24
access list:
symbolic names:
keyword substitution: kv
total revisions: 24; selected revisions: 24
description:
This file is writer .c
file
in this file open the node for connect the application and vfs
revision 1.3
date: 2016/01/11 09:42:32; author: emblogic; state: Exp; lines: +15 -6
This is a application file
open the node in write only mode and print the fd
—————————-
revision 1.2
date: 2016/01/11 08:38:17; author: emblogic; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.1
date: 2016/01/11 06:54:51; author: emblogic; state: Exp;
Initial revision
RCS file: writer_dev.c,v
Working file: writer_dev.c
head: 1.46
branch:
locks: strict
emblogic: 1.46
access list:
symbolic names:
keyword substitution: kv
total revisions: 46; selected revisions: 46
description:
chang the write routine and use the macro copy from user for copy the data from user space to kernel space
—————————-
revision 1.46 locked by: emblogic;
date: 2016/01/30 05:56:35; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.45
date: 2016/01/30 05:46:43; author: emblogic; state: Exp; lines: +1 -1
use ERESTARTSYS
—————————-
revision 1.44
date: 2016/01/30 05:16:32; author: emblogic; state: Exp; lines: +1 -1
remove the if condition in semaphore
—————————-
revision 1.37
date: 2016/01/27 11:56:13; author: emblogic; state: Exp; lines: +1 -0
fatch the address from private data in ldev and
catch the return address by scull in dev->Qset stracture variable
revision 1.22
date: 2016/01/25 07:07:41; author: emblogic; state: Exp; lines: +5 -4
fatch the value private data and stor in local variable and pass in copy form user
—————————-
revision 1.21
revision 1.5
date: 2016/01/22 05:15:07; author: emblogic; state: Exp; lines: +3 -5
catch the data from copy from user macro and use header hile for this
,
—————————-
revision 1.4
date: 2016/01/2

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>