EmbLogic's Blog

charactor driver(open-release)

head 1.32;
access;
symbols;
locks; strict;
comment

1.32
date 2014.05.06.06.20.21; author root; state Exp;
branches;
next 1.31;

1.31
date 2014.05.04.09.46.22; author root; state Exp;
branches;
next 1.30;

1.30
date 2014.05.04.08.15.17; author root; state Exp;
branches;
next 1.29;

1.29
date 2014.05.04.06.32.30; author root; state Exp;
branches;
next 1.28;

1.28
date 2014.05.04.06.13.17; author root; state Exp;
branches;
next 1.27;

1.27
date 2014.05.03.12.26.38; author root; state Exp;
branches;
next 1.26;

1.26
date 2014.05.03.12.19.24; author root; state Exp;
branches;
next 1.25;

1.25
date 2014.05.03.12.01.18; author root; state Exp;
branches;
next 1.24;

1.24
date 2014.05.03.11.38.57; author root; state Exp;
branches;
next 1.23;

1.23
date 2014.05.03.10.54.49; author root; state Exp;
branches;
next 1.22;

1.22
date 2014.05.03.10.52.50; author root; state Exp;
branches;
next 1.21;

1.21
date 2014.05.03.10.51.13; author root; state Exp;
branches;
next 1.20;

1.20
date 2014.05.03.10.50.08; author root; state Exp;
branches;
next 1.19;

1.19
date 2014.05.03.10.48.38; author root; state Exp;
branches;
next 1.18;

1.18
date 2014.05.03.10.47.31; author root; state Exp;
branches;
next 1.17;

1.17
date 2014.05.03.10.37.39; author root; state Exp;
branches;
next 1.16;

1.16
date 2014.05.03.10.32.07; author root; state Exp;
branches;
next 1.15;

1.15
date 2014.05.03.10.31.14; author root; state Exp;
branches;
next 1.14;

1.14
date 2014.05.03.10.30.05; author root; state Exp;
branches;
next 1.13;

1.13
date 2014.05.03.10.28.50; author root; state Exp;
branches;
next 1.12;

1.12
date 2014.05.03.10.28.12; author root; state Exp;
branches;
next 1.11;

1.11
date 2014.05.03.10.25.22; author root; state Exp;
branches;
next 1.10;

1.10
date 2014.04.29.11.10.44; author root; state Exp;
branches;
next 1.9;

1.9
date 2014.04.29.10.38.02; author root; state Exp;
branches;
next 1.8;

1.8
date 2014.04.28.11.57.51; author root; state Exp;
branches;
next 1.7;

1.7
date 2014.04.28.11.35.48; author root; state Exp;
branches;
next 1.6;

1.6
date 2014.04.28.11.08.34; author root; state Exp;
branches;
next 1.5;

1.5
date 2014.04.28.11.07.28; author root; state Exp;
branches;
next 1.4;

1.4
date 2014.04.28.11.05.58; author root; state Exp;
branches;
next 1.3;

1.3
date 2014.04.28.10.51.47; author root; state Exp;
branches;
next 1.2;

1.2
date 2014.04.28.10.43.08; author root; state Exp;
branches;
next 1.1;

1.1
date 2014.04.28.08.08.28; author user3; state Exp;
branches;
next ;

desc
@driver insert function
@

1.32
log
@use module_param .
@
text
@#include”header.h”
int node;
dev_t dev;
int ret;
int major,minor;
struct sculldev *sculldev;
module_param(node,int,S_IRUGO);
static int __init device_driver_init(void)
{
printk(KERN_INFO “Emblogic Pvt. Ltd.\n”);
ret=alloc_chrdev_region(&dev, 0,node,”kamal”);
major=MAJOR(dev);
minor=MINOR(dev);
printk(KERN_INFO “%d”,major);
printk(KERN_INFO “%d”,minor);
sculldev=kmalloc(sizeof(struct sculldev),GFP_KERNEL);
return 0;

}
module_init(device_driver_init);
@

1.31
log
@*** empty log message ***
@
text
@d7 1
a16 1
//void cdev_init(struct cdev *, const struct file_operations *);
@

1.30
log
@register the driver with alloc_chrdev_region.
@
text
@d10 1
a10 1
ret=alloc_chrdev_region(&dev, 0,1,”satinder”);
@

1.29
log
@*** empty log message ***
@
text
@d2 1
a2 1
int node=5;
d7 1
a7 1
static int device_driver_init(void)
@

1.28
log
@*** empty log message ***
@
text
@a1 1
#include”decleration.h”
d6 1
d17 1
@

1.27
log
@*** empty log message ***
@
text
@d2 1
@

1.26
log
@*** empty log message ***
@
text
@d14 1
a14 1
ret=kmalloc(sizeof(struct sculldev));
@

1.25
log
@use kmalloc
@
text
@d9 5
a13 5
ret=alloc_chrdev_region(&dev, 0,1,”satinder”);
major=MAJOR(dev);
minor=MINOR(dev);
printk(KERN_INFO “%d”,major);
printk(KERN_INFO “%d”,minor);
@

1.24
log
@*** empty log message ***
@
text
@d14 1
a14 1
//ret=kmalloc(sizeof(struct sculldev));
@

1.23
log
@*** empty log message ***
@
text
@d14 2
@

1.22
log
@*** empty log message ***
@
text
@d5 1
a5 1
int major,minior;
@

1.21
log
@*** empty log message ***
@
text
@d11 1
a11 1
minior=MAJOR(dev);
d13 1
a13 1
printk(KERN_INFO “%d”,minior);
@

1.20
log
@*** empty log message ***
@
text
@d11 1
a11 1
minior=MINIOR(dev);
@

1.19
log
@*** empty log message ***
@
text
@d11 1
a11 1
minior=MAJOR(dev);
@

1.18
log
@print the major and mimior numbers.
@
text
@d12 2
a13 2
printk(KERN INFO “%d”,major);
printk(KERN INFO “%d”,minior);
@

1.17
log
@*** empty log message ***
@
text
@d5 1
d10 5
@

1.16
log
@*** empty log message ***
@
text
@d9 1
a9 1

@

1.15
log
@*** empty log message ***
@
text
@d5 1
a5 1
static int device_driver_init(void)
@

1.14
log
@*** empty log message ***
@
text
@d10 1
a10 1
module_init(device_driver);
@

1.13
log
@*** empty log message ***
@
text
@d5 1
a5 1
static int __init device_driver(void)
@

1.12
log
@*** empty log message ***
@
text
@d10 1
a10 1
module_init(device_driver_init);
@

1.11
log
@__init add in function init.
@
text
@d5 1
a5 1
static int __init device_driver_init(void)
@

1.10
log
@register the driver.
@
text
@d5 1
a5 1
static int device_driver_init(void)
d7 3
a9 8
printk(KERN_INFO “Emblogic Pvt. Ltd.\n”);
ret=alloc_chrdev_region(&dev, 0,1,”satinder”);
//if(ret)
//{
//printk(KERN_INFO “RET=%d”,ret);
//}
return 0;
}
@

1.9
log
@*** empty log message ***
@
text
@d3 2
d8 1
a8 1
//ret=alloc_chrdev_region(&dev, unsigned, unsigned, “satinder”);
@

1.8
log
@define the int dev.
@
text
@a2 1
int dev;
d6 5
a10 5
ret=alloc_chrdev_region(&dev, unsigned, unsigned, “satinder”);
if(ret)
{
printk(KERN_INFO “RET=%d”,ret);
}
@

1.7
log
@register the driver.
@
text
@d3 1
@

1.6
log
@*** empty log message ***
@
text
@d6 5
@

1.5
log
@defined int node.
@
text
@d2 1
a4 1
int node=5;
@

1.4
log
@remove the decleration.h file
@
text
@d4 1
a4 1
node=5;
@

1.3
log
@give the value to the node.
@
text
@a1 1
#include”decleration.h”
@

1.2
log
@*** empty log message ***
@
text
@d2 1
d5 2
a6 1
printk(KERN_INFO “Emblogic Pvt. Ltd.\n”);
@

1.1
log
@Initial revision
@
text
@d4 1
a4 1
printk(KERN_INFO “HELLO KERNAL I AM NEW DRIVER”);
@

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>