Re: how to call system call from kernelspace

2010-04-26 Thread SandeepKsinha
On Tue, Apr 27, 2010 at 9:57 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Tue, Apr 27, 2010 at 09:25, rahul patil rahul.deshmukhpa...@gmail.com wrote: Though it is bad idea to call a system call from kernel space is it possible any how to call a system call from kernel space?

Re: how to develop against linux-next

2010-04-08 Thread SandeepKsinha
On Thu, Apr 8, 2010 at 6:34 PM, vorad vorad.1...@gmail.com wrote: Hi guys, I am wondering how are you rebasing against linux-next each day, given the fact that the code is so rapidly changing. Is there any guide on how we should do this? I only know about this one

Re: Small patches for Linux kernel

2010-01-25 Thread SandeepKsinha
On Tue, Jan 26, 2010 at 12:41 PM, Himanshu Chauhan hschau...@nulltrace.org wrote: Hi All, Where should I send small patches? Patches which address small compilation warnings etc. Linux kernel mailing list receives a lot of heavy weight patches and small patches get lost. Which is the best

Re: compiling ext2 outside source tree

2010-01-10 Thread SandeepKsinha
On Sun, Jan 10, 2010 at 10:37 PM, Onkar onkar@gmail.com wrote: Hi ,     I want to take the folder ext2 from linux-2.6.31.5/fs/ext2  compile it outside the tree and insmod ext2.ko. What changes should I make to the Makefile ? You can keep it inside and compile ext2 only make

Re: 'No such device or address' when writing to device driver

2010-01-08 Thread SandeepKsinha
On Fri, Jan 8, 2010 at 11:46 AM, Durga Prasad write...@yahoo.com wrote: Run strace to cat. You will know what is causing the error. Can you post the code? Regards Durga From: Sam Carter sam.w.car...@gmail.com To: kernelnewbies kernelnewbies@nl.linux.org

Re: Accessing dentry structs and lists in the VFS

2009-11-22 Thread SandeepKsinha
Hi Sam, On Sun, Nov 22, 2009 at 7:19 PM, Sam Carter sam.w.car...@gmail.com wrote: Hi folks, If I have a file object in the kernel, and want to get hold of the files in that dentry Object, how do I approach it? I think walking a directory inside the kernel is not suggested. If you share

Re: How to print Superblock(ext2) data

2009-10-21 Thread SandeepKsinha
Hi Mahesh, On Wed, Oct 21, 2009 at 1:24 PM, mahesh sobale msobale...@gmail.com wrote: HI, I am new to kernelnewbies. I am trying to print meta data in kernel space for superblock. for that i have to fire ioctl and write char device driver(This part i know), how about using debugfs.

Re: copy_from_user and copy_to_user example

2009-09-20 Thread SandeepKsinha
Hi Krushnaal, On Fri, Sep 18, 2009 at 4:08 PM, krushnaal pai krisonea...@gmail.com wrote: Dear all, I wonder if anyone could provide the example for the usage of copy_from_usr and copy_to_usr including the programs both in kernel space and in user space. Since, you have asked for a program

Is SSD a fear to storage enterprises?

2009-09-20 Thread SandeepKsinha
Hi all, I was just wondering that the transition from 512bps and 520bps to (4096+128) bytes per sector is going to create a lot of storage enterprises or not? Mostly these enterprises developed software so very tightly coupled with sector size to provide resiliency from various kind of storage

Re: ext4 extents: How to determine if an extent points to a hole.

2009-09-15 Thread SandeepKsinha
Hi Peter, On Tue, Sep 15, 2009 at 7:15 AM, Peter Teoh htmldevelo...@gmail.com wrote: just to share what i have read, based on lwn.net surfing: From the article that started it all: http://lwn.net/Articles/260795/ From the specs, if u used ioctl() with FIEMAP_EXTENT_HOLE it will keep

Re: ext4 extents: How to determine if an extent points to a hole.

2009-09-14 Thread SandeepKsinha
Hi Greg, Thanks a lot for such nice explanation. But I still have the same query lingering... On Mon, Sep 14, 2009 at 9:36 AM, Greg Freemyer greg.freem...@gmail.com wrote: On Sun, Sep 13, 2009 at 1:49 PM, SandeepKsinha sandeepksi...@gmail.com wrote: On Sun, Sep 13, 2009 at 11:08 PM, Manish

Re: ext4 extents: How to determine if an extent points to a hole.

2009-09-14 Thread SandeepKsinha
Hi Manish, On Mon, Sep 14, 2009 at 2:57 PM, Manish Katiyar mkati...@gmail.com wrote: On Mon, Sep 14, 2009 at 11:59 AM, SandeepKsinha sandeepksi...@gmail.com wrote: Hi Greg, Thanks a lot for such nice explanation. But I still have the same query lingering... On Mon, Sep 14, 2009 at 9:36

Re: ext4 extents: How to determine if an extent points to a hole.

2009-09-14 Thread SandeepKsinha
Hi Manish, On Mon, Sep 14, 2009 at 3:12 PM, Manish Katiyar mkati...@gmail.com wrote: On Mon, Sep 14, 2009 at 3:09 PM, SandeepKsinha sandeepksi...@gmail.com wrote: Hi Manish, On Mon, Sep 14, 2009 at 2:57 PM, Manish Katiyar mkati...@gmail.com wrote: On Mon, Sep 14, 2009 at 11:59 AM

Re: making a global structure

2009-09-14 Thread SandeepKsinha
Hi Krushnaal, On Mon, Sep 14, 2009 at 5:54 PM, krushnaal pai krisonea...@gmail.com wrote: hello i am a newbie, i know about exporting variables between modules, but what i am trying right now is to export a structure( i want to make a global structure) i wrote this in one module. Code:

ext4 extents: How to determine if an extent points to a hole.

2009-09-13 Thread SandeepKsinha
Hi all, Looking at the flags in the extent info, Is there any specifc flags which indicates an extent to be a HOLE?? I could only find the following ones... 39#define FIEMAP_MAX_OFFSET (~0ULL) 40 41#define FIEMAP_FLAG_SYNC0x0001 /* sync file data before map */

e4defrag: file extent map : redundant loop???

2009-09-13 Thread SandeepKsinha
Hi all, Here is a code snippet from e4defrag.c, can be located @ http://git.kernel.org/?p=fs/ext2/e2fsprogs.git;a=blob_plain;f=misc/e4defrag.c;hb=next /* * get_file_extents() - Get file's extent list. * * @fd: defrag target file's descriptor. * @ext_list_head: the head

Re: ext4 extents: How to determine if an extent points to a hole.

2009-09-13 Thread SandeepKsinha
Hi, On Sun, Sep 13, 2009 at 10:07 PM, Manish Katiyar mkati...@gmail.com wrote: On Sun, Sep 13, 2009 at 5:44 PM, SandeepKsinha sandeepksi...@gmail.com wrote: Hi all, Looking at the flags in the extent info,  Is there any specifc flags which indicates an extent to be a HOLE?? I am

Re: ext4 extents: How to determine if an extent points to a hole.

2009-09-13 Thread SandeepKsinha
On Sun, Sep 13, 2009 at 11:08 PM, Manish Katiyar mkati...@gmail.com wrote: On Sun, Sep 13, 2009 at 10:12 PM, SandeepKsinha sandeepksi...@gmail.com wrote: Hi, On Sun, Sep 13, 2009 at 10:07 PM, Manish Katiyar mkati...@gmail.com wrote: On Sun, Sep 13, 2009 at 5:44 PM, SandeepKsinha sandeepksi

Re: NEWBIE in kernel

2009-09-11 Thread SandeepKsinha
Hi Gaurav, On Fri, Sep 11, 2009 at 5:22 PM, Niamathullah sharief newbie...@gmail.com wrote: the way to start your linux kernel programming is LINUX DEVICE DRIVERS by Jonathan Corbet, Alessandro Rubini, and Greg Kroah-Hartman. On Fri, Sep 11, 2009 at 1:52 PM, Gaurav Soni grvli...@gmail.com

trim in SSD's

2009-09-06 Thread SandeepKsinha
Hi All, Some of the SSD's implement trim as a no-op? I also heard that they have better wear life? Quoting from some expert's comment: They purposely allocate every logical block at initialization time so the drive is effectively aged from the outset. This way the performance doesn't change

Re: Is the list broken?

2009-08-22 Thread SandeepKsinha
On Sat, Aug 22, 2009 at 7:46 AM, Greg Freemyer greg.freem...@gmail.comwrote: What is going on? I'm even seeing my own post multiple times. Is this happening to everyone? Or just me? I just see posts from Manish multiple times. On Fri, Aug 21, 2009 at 6:07 PM, Greg

Re: ext3 structure mapping to block device

2009-08-17 Thread SandeepKsinha
Hi Ajit, On Mon, Aug 17, 2009 at 11:06 AM, ajit mote mail2black...@gmail.com wrote: Hello, I would like to know how file system structures are mapped to hard disk sector. My goal is to understand how file system is created on block device and how superblocks are mapped to hard disk

Re: creating global variables in kernel

2009-08-17 Thread SandeepKsinha
On Mon, Aug 17, 2009 at 3:37 PM, krushnaal pai krisonea...@gmail.comwrote: i want to create global variables /pointers in kernel which should be accessible to all kernel modules ( i.e all kernel modules should be sharing the same copy ) how to? EXPORT_SYMBOL(variable); This should allow

Re: 32-bit kernel

2009-08-16 Thread SandeepKsinha
Hi Manish, On Sat, Aug 15, 2009 at 9:20 PM, Peter Teoh htmldevelo...@gmail.com wrote: i don't think there is such a thing as 32/64 bit filesystem. Filesystem type does not need to be linked to the OS's 32/64 bit architecture. Ie, ext2 or ext3, is the same when mounted in either filesystem.

Re: Condition Variables

2009-08-13 Thread SandeepKsinha
Manish, On Thu, Aug 13, 2009 at 8:43 PM, Michael Blizek mic...@michaelblizek.twilightparadox.com wrote: Hi! On 17:03 Thu 13 Aug , Rangankar, Manish wrote: Hi All, I want to know, does Linux supports *conditional variables*? In userspace: yes In kernelspace: no, use

Re: Compiling modules on UML

2009-08-05 Thread SandeepKsinha
Manish, On Wed, Aug 5, 2009 at 3:54 PM, Manish Katiyarmkati...@gmail.com wrote: Hi, I am trying to compile a module on UML. The kernel with which I am booting UML is my custom kernel built on i386 machine with the command line as make defconfig ARCH=um; make linux ARCH=um. After the kernel

Re: want to write a file system

2009-08-03 Thread SandeepKsinha
Nidhi, On Mon, Aug 3, 2009 at 2:05 PM, nidhi mittal hadanidhimitta...@gmail.com wrote: hello all i want to write a filesystem for kernel for learning purpose only . i have read background theory from bach utlk i was studying ext2 code for knowing how its written but its huge code i am

Re: preemption

2009-07-31 Thread SandeepKsinha
On Fri, Jul 31, 2009 at 10:43 PM, Chetan Nandachetanna...@gmail.com wrote: On Fri, Jul 31, 2009 at 12:33 PM, er krishna erkris...@gmail.com wrote: On Fri, Jul 31, 2009 at 11:21 AM, Vivek Subbarao viv...@chelsio.com wrote: weather the second process has its priority must be higher than the

Re: how to list the current HZ value?

2009-07-29 Thread SandeepKsinha
Robert, On Wed, Jul 29, 2009 at 8:36 PM, Robert P. J. Dayrpj...@crashcourse.ca wrote:  almost certainly about to embarrass myself with this question, but is there a quick way to list the current HZ value for the running kernel?  without writing a C program.  something under /proc, perhaps?

Re: Tmpfs nr_inodes

2009-07-28 Thread SandeepKsinha
Hi Darvin, On Wed, Jul 29, 2009 at 2:36 AM, Darvin Denmiandarvin.denm...@gmail.com wrote: Hello, My question is about tmpfs: - If i increase the number of inodes avaliable in a tmpfs mounted directory, will i have some performance impact? # Before increase number of inodes df -i

Re: Accessing File system directories

2009-07-27 Thread SandeepKsinha
Hi Dan, On Mon, Jul 27, 2009 at 11:54 AM, Dan Danillodandani...@ymail.com wrote: Hello, I'm trying to find out how to browse the file system from the linux kernel. What exactly do you mean by that. Do you mean that you want to traverse the namespace being inside the kernel through some

Re: Integrating kernel module code into kernel source tree.

2009-07-27 Thread SandeepKsinha
On Mon, Jul 27, 2009 at 5:49 PM, Denis Borisevichdennis...@gmail.com wrote: 2009/7/27 Belisko Marek marek.beli...@gmail.com: Hi, On Mon, Jul 27, 2009 at 1:13 PM, Denis Borisevichdennis...@gmail.com wrote: Hi! I have driver for PCI serial board, it compiles as a module, loads and works fine.

Re: Checking Installed library

2009-07-26 Thread SandeepKsinha
On Wed, Jul 22, 2009 at 9:41 PM, Manish Katiyar mkati...@gmail.com wrote: On Sat, Jul 18, 2009 at 2:37 PM, Rishi Agrawalrishi.b.agra...@gmail.com wrote: On Sat, Jul 18, 2009 at 2:25 PM, Manish Katiyar mkati...@gmail.com wrote: On Sat, Jul 18, 2009 at 1:45 PM, Rishi Agrawal

Re: sending kernel data to user application

2009-07-22 Thread SandeepKsinha
Hi Krushnal, On Wed, Jul 22, 2009 at 8:40 PM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: Hi... I hope you don't mind if I cc my reply to kernelnewbies mailing list too...so that you can get more response.. On Wed, Jul 22, 2009 at 4:03 PM, krushnaal paikrisonea...@gmail.com wrote:

Re: how to export function from fs/dropcache.c

2009-07-21 Thread SandeepKsinha
Hi Krishna, On Tue, Jul 21, 2009 at 1:07 PM, er krishna erkris...@gmail.com wrote: On Tue, Jul 21, 2009 at 12:45 PM, Siddu siddu.s...@gmail.com wrote: On Tue, Jul 21, 2009 at 11:13 AM, er krishna erkris...@gmail.com wrote: I am again repeating the steps, i found something interested,

Re: Using submit_bh from IOCTL

2009-07-21 Thread SandeepKsinha
Hi Prasad, On Tue, Jul 21, 2009 at 12:14 PM, Prasad Joshi prasadjoshi...@gmail.comwrote: Hi All, I am working on a block device (something similar to the loop device). The block device is associated with a file. So every write or read on block device is intern scheduled to the backing file.

Re: simulating the kernel crash and kernel panic

2009-07-21 Thread SandeepKsinha
Hi Thalib, On Tue, Jul 21, 2009 at 9:56 PM, H M Thalib hmtha...@gmail.com wrote: Mulyadi Santosa wrote: On Mon, Jul 20, 2009 at 10:54 PM, H M Thalibhmtha...@gmail.com wrote: I want to test my kernel for stability. Can you help me in artificially simulating the kernel crash, kernel panic

Re: how to export function from fs/dropcache.c

2009-07-20 Thread SandeepKsinha
Hi Krishna, On Mon, Jul 20, 2009 at 8:10 PM, er krishna erkris...@gmail.com wrote: Dear All, I have one simple problem in exporting the function. Everything is fine, but its not working as per the expectation. Actually I have to export some function from fs/dropcache.c, but it is

Re: Checking Installed library

2009-07-18 Thread SandeepKsinha
Hi Rishi, I am using this particular line: AC_CHECK_LIB(xml2,xmlParseFile,,AC_MSG_ERROR(oops! no function xmlParseFile function in xml?!?),) in my configure.in for autoconf It should work fine for you in most of the cases. But I really doubt if this the best possible way to achieve what you

Re: determine SCSI HBA

2009-07-18 Thread SandeepKsinha
Hi Mahaveer, On Sat, Jul 18, 2009 at 8:43 PM, mahaveer darade mah.dar...@gmail.comwrote: use lspci/lshw grep for scsi (hba vendor either qlogic,emulex.) you can also grep /var/log/messages for the same. Please do not top post. On Sat, Jul 18, 2009 at 11:57 AM, Leena M.

Re: New to kernel programming

2009-07-15 Thread SandeepKsinha
On Thu, Jul 16, 2009 at 9:43 AM, Kousik Maiti maiti.kou...@gmail.comwrote: Hi list,I am new to kernel programming. I want to create a module. For that I follow http://crashcourse.ca/wiki/index.php/Writing_your_first_kernel_module . When I run make command I got this message. $make make -C

Re: sizeof(dev_t)

2009-07-13 Thread SandeepKsinha
unsigned long long int __uint64_t; So i think in 32 bit cpu they are same,and if your kernel compile for 32 and user space configuration for 64. Is it the problem ? Explained above. BRs, Lin 2009/7/13 SandeepKsinha sandeepksi...@gmail.com: Hi Greg, find my reply inline

Re: sizeof(dev_t)

2009-07-13 Thread SandeepKsinha
Hi Greg, I am not passing a dev_t as a binary from userspace to kernel space. Its a part of the structure. Which means it is a binary value :) Yes, it actually is. E.g struct device_info { dev_t dev_num; ... } Exactly. Don't do that, as you have found out, it

Re: sizeof(dev_t)

2009-07-12 Thread SandeepKsinha
Hi Greg, find my reply inline. On Sun, Jul 12, 2009 at 11:44 PM, Greg KH g...@kroah.com wrote: On Sun, Jul 12, 2009 at 10:16:17PM +0530, SandeepKsinha wrote: Hi, to my surprise, the sizeof dev_t differs in userspace and kernel. Its 8 bytes in userspace and 4bytes in kernel. I am

Re: is i386 and m32r equivalent?

2009-07-11 Thread SandeepKsinha
“To learn is to change. Education is a process that changes the learner.” On Sun, Jul 12, 2009 at 10:29 AM, krushnaal pai krisonea...@gmail.comwrote: i used 2.6.11 and found codes written fro pentium 32 bit architecture in i386, but now i moved to 2.6.28 but thr is no i386 folder in arch

Re: uid and gid ?

2009-07-10 Thread SandeepKsinha
On Thu, Jul 9, 2009 at 11:45 PM, Adrian Cornish adri...@cqg.com wrote: Is there any inbuilt( ) c function which can validate if the passed uid/gid exist's on the machine or not? How about:- struct passwd *getpwuid(uid_t uid); Thanks, but any for validating the gid Adrian --

Re: uid and gid ?

2009-07-10 Thread SandeepKsinha
HI, On Sat, Jul 11, 2009 at 7:45 AM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: Hi... On Fri, Jul 10, 2009 at 11:35 PM, SandeepKsinhasandeepksi...@gmail.com wrote: On Thu, Jul 9, 2009 at 11:45 PM, Adrian Cornish adri...@cqg.com wrote: Is there any inbuilt( ) c function which

Re: How to enable the print timestamping in dmesg

2009-07-10 Thread SandeepKsinha
On Sat, Jul 11, 2009 at 6:50 AM, H M Thalib hmtha...@gmail.com wrote: Hi, When I dmesg in my ubuntu machine it gave a time stamp in front of the printk's. I want to know how to enable this in powerpc and arm based board for optimization. The sample dmesg log is below. This can be done by

uid and gid ?

2009-07-09 Thread SandeepKsinha
Hi, Is there any inbuilt( ) c function which can validate if the passed uid/gid exist's on the machine or not? -- Regards, Sandeep. “To learn is to change. Education is a process that changes the learner.”

Re: help with ext3 reserved inode

2009-07-08 Thread SandeepKsinha
Hi Donato, On Wed, Jul 8, 2009 at 1:14 PM, Donato Capitellad.capite...@tin.it wrote: Hi there, I wrote a dummy function to write to the reserved inode. This is as far as I got and I have a few questions: /**/ void

Re: help with ext3 reserved inode

2009-07-07 Thread SandeepKsinha
Hi Donato, On Mon, Jul 6, 2009 at 11:50 PM, Donato Capitellad.capite...@tin.it wrote: Ok, this is what I want to do. I'm developing a patch to ext3; this patch uses a queue of structures representing tasks to be performed and a separated kernel thread that reads the structures from the

Re: Need info on input keys

2009-07-07 Thread SandeepKsinha
Hi Shashikanth, On Mon, Jul 6, 2009 at 10:54 PM, seshikanth varmaseshikanthva...@gmail.com wrote: Hi All, I need to implement history feature in an emulated shell environment. I need to read keys present in the keyboard and define handler for each key. For example, Up arrow gives the

Re: help with ext3 reserved inode

2009-07-07 Thread SandeepKsinha
On Tue, Jul 7, 2009 at 3:10 PM, Manish Katiyarmkati...@gmail.com wrote: On Tue, Jul 7, 2009 at 2:41 PM, Donato Capitellad.capite...@tin.it wrote: On Tue, 2009-07-07 at 00:10 +0530, Manish Katiyar wrote: Hmm.. Can you try to write something like ext3_get_journal() and tell us the errors you are

Re: what's the state of the kernelnewbies FAQ these days?

2009-07-05 Thread SandeepKsinha
Hi Robert, It does really makes a lot of sense to rectify such issues. It really discourages any newbie who starts kernel programming. Should we copy the linux-kernel folks to have a take on such issues. On Sun, Jul 5, 2009 at 6:42 PM, Robert P. J. Dayrpj...@crashcourse.ca wrote:  i'm

Re: the error about building kernel

2009-06-24 Thread SandeepKsinha
Hi Loody, Which version of kernel are you using and where did you obtain it from? On Thu, Jun 25, 2009 at 9:17 AM, loodymilo...@gmail.com wrote: Dear all: While building the kernel, I get the error below: make -f scripts/Makefile.build obj=scripts/mod  gcc

Re: finding elf headers

2009-06-19 Thread SandeepKsinha
Hi, Google for libbfd. On Fri, Jun 19, 2009 at 10:26 PM, krushnaal paikrisonea...@gmail.com wrote: how to identify the files used by an elf from the headers? where can we find the elf headers for any elf? -- Regards, Sandeep. “To learn is to change. Education is a process

Re: UIDs and GIDs in struct task_struct

2009-06-17 Thread SandeepKsinha
Hi Onkar, On Wed, Jun 17, 2009 at 7:53 AM, Onkar onkar@gmail.com wrote: Why are there so many uids and gids in struct task_struct { -- --     uid_t uid,euid,suid,fsuid;     gid_t gid,egid,sgid,fsgid; -- -- } What is the significance and in which situation we use

Re: UIDs and GIDs in struct task_struct

2009-06-17 Thread SandeepKsinha
Hey Tharindu, On Wed, Jun 17, 2009 at 12:39 PM, Tharindu Rukshan Bamunuarachchithari...@sentory.net wrote: What is the kernel version you are referring to  ... i thought all uid/gid etc ... are moved to struct cred ... http://lxr.linux.no/linux+v2.6.29/include/linux/cred.h#L114 No issues

Re: how to call function in one module frm another?

2009-06-15 Thread SandeepKsinha
try EXPORT_SYMBOL( ) for the function you wish to use in any later module. On Mon, Jun 15, 2009 at 9:49 AM, krushnaal paikrisonea...@gmail.com wrote: im new to linux can sumone plzz tell me how to call a function defined in one module frm another module? also i have made some changes in the

Re: Recovering deleted file by editing inode..

2009-05-25 Thread SandeepKsinha
On Mon, May 25, 2009 at 11:27 AM, ranjith kannikara ranjithkannik...@gmail.com wrote: Hi, Meanwhile there is another problem that if we delete a file and then unmount the device. Re-mount it and try debugfs, the journal entries doesn't show the details of the deleted file. try this: Delete

Re: Recovering deleted file by editing inode..

2009-05-25 Thread SandeepKsinha
On Mon, May 25, 2009 at 11:47 AM, ranjith kannikara ranjithkannik...@gmail.com wrote: On Mon, May 25, 2009 at 11:35 AM, SandeepKsinha sandeepksi...@gmail.com wrote: On Mon, May 25, 2009 at 11:27 AM, ranjith kannikara ranjithkannik...@gmail.com wrote: Hi, Meanwhile there is another

Re: Recovering deleted file by editing inode..

2009-05-24 Thread SandeepKsinha
On Mon, May 25, 2009 at 9:04 AM, ranjith kannikara ranjithkannik...@gmail.com wrote: Hi, We are  a team of prefinal year computer science engineering students from kerala.We are trying to design an application which can recover deleted data from the ext3 filesystem. And we are doing it by

Re: Regarding implementation of copy_from_user() and copy_to_user()

2009-05-23 Thread SandeepKsinha
of these things? Any document which gives elaborate explanation would be really helpful for me for future reference, I have seen some more things in linux source code like __extable On Sun, May 17, 2009 at 4:16 PM, SandeepKsinha sandeepksi...@gmail.com wrote: On Sun, May 17, 2009 at 3:18

Re: Regarding implementation of copy_from_user() and copy_to_user()

2009-05-23 Thread SandeepKsinha
On Sat, May 23, 2009 at 1:02 PM, SandeepKsinha sandeepksi...@gmail.com wrote: IMO, binutils members can answer this better. copying binutils list On Sat, May 23, 2009 at 12:06 AM, seshikanth varma seshikanthva...@gmail.com wrote: Hi I googled out but i could not find these things

Re: Error: No such device or address

2009-05-19 Thread SandeepKsinha
Hi Vipul, On Wed, May 20, 2009 at 6:06 AM, Vipul Jain vipu...@gmail.com wrote: Hi,    I have written a sample device driver which gets loaded properly but when I try to open it I get error message    saying No such device or address I was wondering if anyone could please help me with this

Re: Regarding implementation of copy_from_user() and copy_to_user()

2009-05-17 Thread SandeepKsinha
On Sun, May 17, 2009 at 3:18 PM, seshikanth varma seshikanthva...@gmail.com wrote: Hi All, I am trying to understand the implementation of copy_from_user() and copy_to_user() implementation in linux. I know the basics of asm format. But i don't know what is .section .fixup .previous .align

Re: Copying user space data to PCI memory

2009-05-17 Thread SandeepKsinha
On Mon, May 18, 2009 at 6:50 AM, Grant Grundler grund...@parisc-linux.org wrote: Hi Arun, Sandeep, On Sat, May 16, 2009 at 06:33:44PM +0530, SandeepKsinha wrote: Hi Arun, On Sat, May 16, 2009 at 5:48 PM, arun c arun.edar...@gmail.com wrote: Hi all, I want to copy data from user space

using git

2009-05-17 Thread SandeepKsinha
Hi all, I have recently started using git... I know quite late. Say, I make some changes and create a patch. I want to revert back the files to the original/initial revision( when I created git ), how to do that? I tried git checkout -f This didn;t work for me. -- Regards, Sandeep.

Re: Copying user space data to PCI memory

2009-05-16 Thread SandeepKsinha
On Sat, May 16, 2009 at 6:33 PM, SandeepKsinha sandeepksi...@gmail.com wrote: Hi Arun, On Sat, May 16, 2009 at 5:48 PM, arun c arun.edar...@gmail.com wrote: Hi all, I want to copy data from user space to PCI memory. I mapped the PCI memory of the card by, 1)pci_request_regions(pci_dev

Re: working with the linux-next tree

2009-05-16 Thread SandeepKsinha
On Sat, May 16, 2009 at 10:11 PM, Robert P. J. Day rpj...@crashcourse.ca wrote:  i just want to verify how to play with the linux-next tree. following the instructions here: http://linux.f-seidel.de/linux-next/pmwiki/pmwiki.php?n=Linux-next.FAQ i took my clone of linus' tree and ran those