EmbLogic's Blog

Getting Major and Minor number of Driver

RCS file: init.c,v
Working file: init.c
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5;    selected revisions: 5
description:
this is the kernel file to find the major and minor numbers.
—————————-
revision 1.5    locked by: root;
date: 2014/02/13 12:11:07;  author: root;  state: Exp;  lines: +13 -12
extern the file_operations fops.
—————————-
revision 1.4
date: 2014/02/13 06:08:26;  author: root;  state: Exp;  lines: +28 -18
create no. of device by a one drivers using for loop and give the value 5 to the macro NODE.
—————————-
revision 1.3
date: 2014/02/12 16:08:36;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2014/02/11 07:28:57;  author: root;  state: Exp;  lines: +32 -24
allocate the memmory to the device ScullDev
—————————-
revision 1.1
date: 2014/02/11 04:24:33;  author: root;  state: Exp;
Initial revision
=============================================================================

Comments are closed.