Doubt regarding Minor Numbers and alloc_chrdev_region

2011-02-08 Thread Sankar P
he significance of these two variables (first minor number and count of devices) that we pass to the alloc_chrdev_region api, if they can be over-ridden on mknod time ? Or have I misunderstood something ? Any help will be appreciated. Thanks. -- Sankar P http://psankar.blogspot.com _

Re: Doubt regarding Minor Numbers and alloc_chrdev_region

2011-02-08 Thread Sankar P
d needs us to read a lot of pages before we touch first line of code. Thanks for all your help. I shall update once I make progress. -- Sankar P http://psankar.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Creating mkfs for my custom filesystem

2013-03-29 Thread Sankar P
mkfs for my filesystem such that the generic mkfs utility will understand my filesystem. What APIs should I be using ? Any help is appreciated. Thanks. -- Sankar P http://psankar.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Creating mkfs for my custom filesystem

2013-03-29 Thread Sankar P
On Fri, Mar 29, 2013 at 3:28 PM, Tobias Boege wrote: > On Fri, 29 Mar 2013, Sankar P wrote: >> Hi, >> >> I am trying to write a simple filesystem to learn the basics of it. >> >> I have decided on a simple layout for my filesystem where the first >> b

Re: Creating mkfs for my custom filesystem

2013-03-29 Thread Sankar P
On Fri, Mar 29, 2013 at 3:56 PM, Pranay Srivastava wrote: > -- Forwarded message -- > From: Pranay Srivastava > Date: Fri, 29 Mar 2013 15:53:21 +0530 > Subject: Re: Creating mkfs for my custom filesystem > To: Sankar P > > > > On 3/29/13, Sankar

Re: Creating mkfs for my custom filesystem

2013-03-29 Thread Sankar P
Thank you everyone for the plenty of good pointers. I should be able to proceed from here :-) On Fri, Mar 29, 2013 at 7:31 PM, Tobias Boege wrote: > On Fri, 29 Mar 2013, Sankar P wrote: >> On Fri, Mar 29, 2013 at 3:28 PM, Tobias Boege wrote: >> > On Fri, 29 Mar 2013, Sankar

Re: Creating mkfs for my custom filesystem

2013-03-29 Thread Sankar P
On Fri, Mar 29, 2013 at 10:57 PM, Manish Katiyar wrote: > > > > On Fri, Mar 29, 2013 at 1:27 AM, Sankar P > wrote: >> >> Hi, >> >> I am trying to write a simple filesystem to learn the basics of it. >> >> I have decided on a simple layout for

Re: Method to calculate user space thread size

2013-04-02 Thread Sankar P
On Tue, Apr 2, 2013 at 6:25 PM, naveen yadav wrote: > Dear All, > > I have very complex user space application contain more then 400 threads. I > want to limit the stack size in user space, for this I want to know how much > stack size each thread use in worst case. Well, this does not answer you

Building multiple .ko files from a single module

2013-04-09 Thread Sankar P
, consider the following association between source files and the .ko files. a.c a.h common.c common.h => 1.ko b.c b.h common.c common.h => 2.ko Thank you. -- Sankar P http://psankar.blogspot.com ___ Kernelnewbies mailing list Kerneln

Re: Building multiple .ko files from a single module

2013-04-09 Thread Sankar P
On Tue, Apr 9, 2013 at 6:34 PM, Kristof Provost wrote: > On 2013-04-09 17:03:14 (+0530), Sankar P wrote: >> I have some source files: a.c b.c c.c etc. Now I need to generate a >> few .ko files such as, 1.ko, 2.ko, 3.ko etc. >> >> For example, consider the following

Building kernel modules with debuginfo and printing line numbers in kernel oops message / coredump

2013-04-19 Thread Sankar P
file size (.ko) is not changed. Can someone help me with building kernel modules with debug info and get the filename and line numbers printed in the oops messages / coredump ? Thanks. -- Sankar P http://psankar.blogspot.com ___ Kernelnewb

Re: Building kernel modules with debuginfo and printing line numbers in kernel oops message / coredump

2013-04-20 Thread Sankar P
lenames and line numbers :) > Regards, > Neha > > On Fri, Apr 19, 2013 at 12:25 PM, Sankar P > wrote: >> >> Hi, >> >> I have written a kernel module which I build using: >> >> Makefile (edited a bit) >> == >> obj-m := simple.o &g

Re: Building kernel modules with debuginfo and printing line numbers in kernel oops message / coredump

2013-04-20 Thread Sankar P
On Sat, Apr 20, 2013 at 11:04 AM, wrote: > On Fri, 19 Apr 2013 23:55:49 +0530, Sankar P said: > >> myfunctionname +0x2507 +5679 > > That function is too honking big and needs to be refactored. :) hehe Actually I just typed some random numbers to explain my problem, that

Fwd: Building kernel modules with debuginfo and printing line numbers in kernel oops message / coredump

2013-04-22 Thread Sankar P
On Mon, Apr 22, 2013 at 6:00 AM, arshad hussain wrote: > > > > On Mon, Apr 22, 2013 at 5:58 AM, arshad hussain > wrote: >> >> >> >> >> On Fri, Apr 19, 2013 at 11:55 PM, Sankar P >> wrote: >>> >>> Hi, >>> >>

Re: how do i read a block

2013-05-15 Thread Sankar P
would read the first block and all its contents? > It may be read even further (readahead) If you are in kernel mode, and if you want to implement your own filesystem and want to read a single block, you can use the sb_bread function. -- Sankar P htt

Re: File system implementation

2013-05-26 Thread Sankar P
le mkfs-yourfs.c which will fopen the given input file, write (by type casting to a char *) the struct pointer which contains your filesystem structure and then closes the file. It is as simple as that :) All the best. -- Sankar P http://psankar.blogspot.com __

Re: what's best way for playing with kernel configurations and source code

2013-05-26 Thread Sankar P
source level, you can use git local branches. See http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging -- Sankar P http://psankar.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.or

lookup function return value in inode_operations

2013-05-27 Thread Sankar P
if we are implementing our own filesystem ? Thanks. -- Sankar P http://psankar.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: dump utility[sorry for last spam, it was tab+enter]

2013-05-27 Thread Sankar P
ything yet on google. > > http://people.redhat.com/anderson/crash_whitepaper/ is not enough ? Please excuse, if you are trying to implement something on your own to learn :) -- Sankar P http://psankar.blogspot.com ___ Kernelnewbies mailing list Kernelnewb

Building libraries and binaries using Kbuild in a different folder

2013-11-11 Thread Sankar P
, using my Kbuild file, I build more than one .ko files. Is there a way to build only one target ? i.e., If my .ko generates a.ko ,b.ko and c.ko, Is there a way to build b.ko alone if I want ? Thanks. -- Sankar P http://psankar.blogspot.com

Re: Building libraries and binaries using Kbuild in a different folder

2013-11-11 Thread Sankar P
2013/11/12 Sankar P : > If my .ko generates a.ko ,b.ko > and c.ko, Is there a way to build b.ko alone if I want ? I found the soluton to this. I just have to add the .ko name in the end and it alone will be built. However, I do not know the answer to the other question yet. Thanks. --

Re: How to check if my kernel driver is leaking memory

2014-03-13 Thread Sankar P
ps and you may find it useful: http://psankar.blogspot.in/2010/11/detecting-memory-leaks-in-kernel.html -- Sankar P http://psankar.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Problem while compiling my module on downloaded kernel source

2014-03-15 Thread Sankar P
s. > > Regards > Rahul > > _______ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- Sankar P http://psankar.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Problem while compiling my module on downloaded kernel source

2014-03-15 Thread Sankar P
help me out with this. >> >> Regards >> Rahul >> >> _______ >> Kernelnewbies mailing list >> Kernelnewbies@kernelnewbies.org >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > _

Re: is there any faster way to download using git?

2014-03-16 Thread Sankar P
to download this branch. > > Regards > Rahul > > ___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- Sankar P http://psankar.blogspot.com _

Storing GUIDs in linux [filesystems]

2014-03-27 Thread Sankar P
6 bits. So what is the way used by the Linux [filesystems] to store the GUID in linux to uniquely identify an user ? Were there any proposals in the past, to increase the size of the unix uid to match that of a GUID ? -- Sankar P http://psankar.bl

Re: simplefs - a ridiculosly simple file system from the scratch

2014-03-29 Thread Sankar P
ter stage. I will be happy to get some patches though :) > > > On Thu, Aug 8, 2013 at 8:36 PM, Sankar P wrote: >> >> okay. Thanks. I will update this list once I write enough code for the >> next release :) >> >> On Thu, Aug 8, 2013 at 4:59 PM, Greg Freemyer &

Re: Wait for an IO to complete

2014-03-29 Thread Sankar P
eed something > > write_buffer_to_disk(bh) > > Which will return only if the data has been written on disk. > > Please help > -- > > Regards, > Rishi Agrawal > > ___ > Kernelnewbies mailing list > Kernelnewbie

Re: Question about VFS

2014-05-01 Thread Sankar P
2014-04-30 9:14 GMT+05:30 Adam Fowler : > I've been trying to implement a file system using vfs and I've got mkdir and > touch working but I can't seem to get echo blah > new file to create a new > file with content blah. touch and mkdir are only for file creation. You need to extend and implement

Linux filesystem configuration infrastructure

2014-08-03 Thread Sankar P
make use of such a settings infrastrucutre ? Thanks. -- Sankar P http://psankar.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies