Re: Linux kernel BSP

2021-04-14 Thread Saket Sinha
://source.android.com/ Regards, Saket Sinha On Wed, Apr 14, 2021 at 9:25 AM Pankaj Vinodrao Joshi < pankaj...@exaleapsemi.com> wrote: > Ok, Exactly i was looking for any changes are there w.r.t BSP in > linux-mainline kernel and android kernel but you made me clear with like > there will be no c

Re: Fwd: Need Help regarding Reading and Writting to a file from kernel function file

2019-09-24 Thread Saket Sinha
Hi, I am sorry but I am really tempted to share - https://www.linuxjournal.com/article/8110 But as suggested, you should never try this. Regards, Saket Sinha On Tue, Sep 24, 2019 at 10:50 AM Valdis Klētnieks wrote: > > On Tue, 24 Sep 2019 16:10:07 +0900, Sahibzada Irfanulla

Re: Mark dma buffer readonly

2018-01-31 Thread Saket Sinha
mutex_lock(_lock) CHECK_BIT(hw_register, nth_bit); mutex_unlock(_lock); } Lets suppose the nth_bit is set in hw_register every X ms. Do you think spinlock will be more advantageous here than mutex ? Note: I am on ARMv8 SMP system

Mark dma buffer readonly

2018-01-31 Thread Saket Sinha
this in kthreads and I want to protect it without using mutex/spilock. Apart from protecting it with spinlock or mutex, is their anyway to mark this dma buffer as read-only so that other threads(after concerned thread has accessed it) cannot access the dma b

Re: ReviewRequest of a booklet on System Concepts

2017-12-25 Thread Saket Sinha
Hi Rishi, Nice work. Would love to see something similar for ARM. Regards, Saket Sinha On Tue, Dec 26, 2017 at 10:20 AM, Rishi Agrawal <rishi.b.agra...@gmail.com> wrote: > Hi All, > > I have written this booklet http://sys.readthedocs.io/en/latest/ explaining > some concepts

Re: Any successful story of debugging linux 4.13 with qemu 2.10 and gdb 8.01?

2017-09-22 Thread Saket Sinha
master/docs/GOLDFISH-VIRTUAL-HARDWARE.TXT Regards, Saket Sinha ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Any successful story of debugging linux 4.13 with qemu 2.10 and gdb 8.01?

2017-09-21 Thread Saket Sinha
er on the kernel in all of > my years of kernel development... > I agree the developers should not be doing it. It is documented that gdb/kgdb will not work if KALSAR is enabled. Please refer - https://github.com/torvalds/linux/commit/e604f1cb85367d2e5fd4cf253296d190996da81a Regards, Saket Si

Re: one more new Bie

2016-08-08 Thread Saket Sinha
ar Coverity scans of kernel. You can fix one of these get started. Heh... it's called the eudyptula challenge, not the eucalyptus challenge. Also, > please don't top-post. >> >> Sorry for top-posting and the typo. Regards, Saket Sinha ___

Re: one more new Bie

2016-08-06 Thread Saket Sinha
Hi Anurag, Welcome to the list. This is a query forum but we can surely help you with getting started. Take up Eucalyptus challenge or the TODOs in the staging area driver if you're interested in kernel development. Let me know if you're looking for something specific. Regards, Saket Sinha

Re: Does the Community use Coverity ?

2015-12-15 Thread Saket Sinha
Hi pavi, Refer https://lwn.net/Articles/608992/ Regards, Saket Sinha On Tue, Dec 15, 2015 at 12:32 PM, pavi1729 <pavitra1...@gmail.com> wrote: > Hi, > May I know if the community uses the Coverity tool and, if yes where > can I find a repo of > Coverity scans of kerne

Re: Storage Training and Development Project

2015-08-21 Thread Saket Sinha
Hi Robert, http://sanfoundry.com/ Regards, Saket Sinha On Fri, Aug 21, 2015 at 12:47 PM, Robert Clove cloverob...@gmail.com wrote: Hi, I am looking to learn storage technology/domain (NVMe included) and want to do some development project on the same. Can some one provide me with good

Re: Kernel Debugging using Qemu

2015-08-14 Thread Saket Sinha
Regards, Saket Sinha On Sat, Aug 15, 2015 at 7:47 AM, Aruna Hewapathirane aruna.hewapathir...@gmail.com wrote: Hi, If anyone uses Qemu can someone please show me how to get started ? I tried : sudo qemu-system-x86_64 -s -S -kernel arch/x86/boot/bzImage -initrd /boot/initrd.img-4.1.2

Re: A flow path for ethernet kernel driver

2015-05-18 Thread Saket Sinha
HI , If you want to go further than just the printks, you can setup a qemu setup and attach gdb to it. Then you can even set breakpoints to analyze it. Let me know if you have any issues with the setup. Regards, Saket Sinha On Tue, May 19, 2015 at 11:18 AM, anish singh anish198519851

Re: Intercepting memory mapped files

2015-01-30 Thread Saket Sinha
HI, Kindly refer the following link that implements a minimal encryption over wrapfs. https://github.com/piekill/wrapfs Go through the wrapfs_encrypt in wrapfs_readpage and wrapfs_decrypt in wrapfs_writepage. Regards, Saket Sinha On Fri, Jan 30, 2015 at 3:56 PM, Kunal Baweja bawejakuna

Re: Block Device Driver Tutorial

2015-01-21 Thread Saket Sinha
Hi, I would refer Anil Pugalia from Sysplay(http://sysplay.in/) . You can find his articles at http://www.opensourceforu.com/author/anil-kumar-pugalia/ On Thu, Jan 22, 2015 at 10:20 AM, Gunjan Mehta gunjanmeht...@gmail.com wrote: Hi All, I am looking for some good tutorials for block device

Re: Address_space_operations write_begin vs prepare_write ?

2015-01-19 Thread Saket Sinha
version - https://www.kernel.org/pub/linux/kernel/v3.0/ Regards, Saket Sinha On Mon, Jan 19, 2015 at 8:58 PM, Kunal Baweja bawejakuna...@gmail.com wrote: Hi, I am new to kernel coding and right now trying to implement address space operations on top of WrapFS. I noticed

Re: List my Staging Drivers

2014-12-09 Thread Saket Sinha
kernel and boot into your modified kernel. (If your driver is standalone and not dependent on other drivers, you can build its seprately and insmod it without having to build the entire kernel tree.) Hope that helps. Regards, Saket Sinha On Wed, Dec 10, 2014 at 2:23 AM, Davide Gianforte dav

Re: Learning Memory Management for linux

2014-12-03 Thread Saket Sinha
if that interests you. Let me know, if you are unable to track it. Regards, Saket Sinha On Wed, Dec 3, 2014 at 10:36 AM, Dean Michael Ancajas dbanca...@gmail.com wrote: Hi Everyone, I am starting to learn linux memory managemet using Gorman's book. I think it would be great

Re: Kernelnewbies Digest, Vol 49, Issue 7

2014-12-03 Thread Saket Sinha
Hi icelee, If you want to know what is the correct method to send a patch to kernel mailing list , have a look at this - http://kernelnewbies.org/OPWfirstpatch Regards, Saket Sinha On Thu, Dec 4, 2014 at 8:51 AM, libin li...@sgepri.sgcc.com.cn wrote: hello, Does anybody know what test

Re: Learning Memory Management for linux

2014-12-02 Thread Saket Sinha
are unable to track it. Regards, Saket Sinha On Wed, Dec 3, 2014 at 10:36 AM, Dean Michael Ancajas dbanca...@gmail.com wrote: Hi Everyone, I am starting to learn linux memory managemet using Gorman's book. I think it would be great if I could participate in a project relating to MM

Re: mapping of inode and file structure in Open System call

2014-11-16 Thread Saket Sinha
/ext2/namei.c: struct inode_operations ext2_dir_inode_operations = { create: ext2_create, lookup: ext2_lookup, link: ext2_link, unlink: ext2_unlink, symlink: ext2_symlink, mkdir: ext2_mkdir, rmdir: ext2_rmdir, . . . . . . . . . . . }; Hope this helps. Regards, Saket Sinha On Thu, Nov 13, 2014

Re: How to Start File System in Linux Kernel

2014-08-20 Thread Saket Sinha
/simplefsnd 3. https://github.com/disdi/Default-FS Hope this comes useful. Regards, Saket Sinha On Wed, Aug 20, 2014 at 9:03 PM, Rahul Garg rahul.lnm...@gmail.com wrote: Hi All, I have basic knowledge of linux kernel concept and I would like to read more about File System. So I would really

Re: How to Start File System in Linux Kernel

2014-08-20 Thread Saket Sinha
2. https://github.com/psankar/simplefsnd https://github.com/psankar/simplefs ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Questions for Storage Engineers

2014-08-19 Thread Saket Sinha
questions directly on the mailing list. Regards, Saket Sinha On Tue, Aug 19, 2014 at 11:35 PM, Nick Krause xerofo...@gmail.com wrote: On Tue, Aug 19, 2014 at 1:58 PM, valdis.kletni...@vt.edu wrote: On Tue, 19 Aug 2014 13:33:22 -0400, Nick Krause said: This is a favor for the btrfs developers

Re: Questions for Storage Engineers

2014-08-19 Thread Saket Sinha
I agree with Valdis. This is how it works. On Wed, Aug 20, 2014 at 12:52 AM, valdis.kletni...@vt.edu wrote: On Tue, 19 Aug 2014 23:49:48 +0530, Saket Sinha said: Each filesystem has its own use-case. Like XFS is for big data, btrfs with its COW and other features meets some specific use

Re: Beagleboard and Panda Board Drivers

2014-08-17 Thread Saket Sinha
and his mails as non-existent. Regards, Saket Sinha On Mon, Aug 18, 2014 at 9:23 AM, Brad Rex brad...@gmail.com wrote: On Sun, Aug 17, 2014 at 8:02 PM, Nick Krause xerofo...@gmail.com wrote: I forget about that thanks Dave. In addition , Brad Rex due to my memory and my Asperger's I am

Re: Where is the source code of udev?

2014-08-11 Thread Saket Sinha
Hi Greg, The link does not exist anymore. Let me know if you have the link of the git repo of systemd. Regards, Saket Sinha On Mon, Aug 11, 2014 at 12:29 PM, Saket Sinha saket.sinh...@gmail.com wrote: Hi Greg, The link does not exist anymore. Let me know if you have the link

Re: Where is the source code of udev?

2014-08-11 Thread Saket Sinha
Something was wrong with my firewall settings. Fixed it and I am able to clone the repo now.Sorry for the troubles. Regards, Saket Sinha On Mon, Aug 11, 2014 at 2:19 PM, Greg Kroah-Hartman g...@kroah.com wrote: On Mon, Aug 11, 2014 at 02:01:20PM +0530, Saket Sinha wrote: Hi Greg

CentOS 7.0 NFS dual mount

2014-08-10 Thread Saket Sinha
startup. There is a big difference with the introduction of systemd, which tries to parallelize the startup of services, whereas this process has been serial with the init daemon. Can this be related with the problem I am facing?. Any help would be appreciated. Regards, Saket Sinha

Re: how do I port from 2.6.32 kernel to 3.11. kernel

2014-08-07 Thread Saket Sinha
Do it version by version to catch any breakage in functionality and would also enable to debug any isssues. Do not directly try to port it to 3.11 Regards, Saket Sinha On Thu, Aug 7, 2014 at 8:45 PM, Omkar Houddin ophouddi...@gmail.com wrote: Hello Guys, Can you please suggest me how

Deleting a line from a file

2014-05-14 Thread Saket Sinha
don't want. Can someone help me to do this without leaving blank lines in between. Regards, Saket Sinha ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Deleting a line from a file

2014-05-14 Thread Saket Sinha
; } Kindly let me know, if you think there is a better way. Regards, Saket Sinha ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Deleting a line from a file

2014-05-14 Thread Saket Sinha
Please find response inline. On Wed, May 14, 2014 at 9:44 PM, valdis.kletni...@vt.edu wrote: On Wed, 14 May 2014 21:27:06 +0530, Saket Sinha said: char newFileName[PATH_MAX]; tabFileNew = setmntent(newFileName, w); And what is the new file name? You have random trash

Re: Managing kernel-updates in rpm

2014-03-25 Thread Saket Sinha
is needed to be done to get it merged properly? I am sorry but I am not allowed to do that. Regards, Saket Sinha ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

building kernel modules for linux differnet version

2014-03-11 Thread Saket Sinha
of driver make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules but I notice that the driver .ko gets generated for 2.6.39- though I am booted into 2.6.32-. Can anyone help me figure out why this is happening? Regards, Saket Sinha

Re: building kernel modules for linux differnet version

2014-03-11 Thread Saket Sinha
On Tue, Mar 11, 2014 at 11:09 PM, Yann Droneaud ydrone...@opteya.com wrote: Le mardi 11 mars 2014 à 22:42 +0530, Saket Sinha a écrit : Please find my response inline I have a scenario where I need to build a driver for different kernel versions. I have kernel-headers of different

Re: [Help] How to Replace File Operations in File System?

2014-02-16 Thread Saket Sinha
Wrapfs is the most basic stackable filesystem in the linux kernel. After this ecryptfs comes which has been developed using the foundation of Wrapfs. The developer is also the same - Erez Zadok from StonyBrook University. You can contact him for more details Regards, Saket Sinha

Re: [Help] How to Replace File Operations in File System?

2014-02-12 Thread Saket Sinha
For encrypt/decrypt on file operations, a stackable filesystem needs to exist between VFS and the lower filesystem(suppose ext4) and that is what wrapfs and ecryptfs does. Regards, Saket Sinha ___ Kernelnewbies mailing list Kernelnewbies

Re: GSoc

2014-02-03 Thread Saket Sinha
Check for the Linux based Organizations on Melagne from previous years. They have staeted making GSOC2014 ides pages. For eg; Debian https://wiki.debian.org/SummerOfCode2014/Projects OpenSuse https://en.opensuse.org/openSUSE:GSOC_ideas ___

Determining 32bit or 64bit OS from a running kernel module

2013-10-22 Thread Saket Sinha
#if LINUX_VERSION_CODE KERNEL_VERSION(2,6,26) for this case ? I know we have CONFIG_X86_64 and CONFIG_X86_32 for x86 architecture but how do I exactly check it in my module code? Regards, Saket Sinha ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

unable to send mail to Linux-Fsdevel

2013-10-08 Thread Saket Sinha
-fsde...@vger.kernel.org Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the server for the recipient domain vger.kernel.org by vger.kernel.org. [209.132.180.67]. If somebody is/was facing a similar issue, kindly help me. Regards, Saket Sinha

Re: unable to send mail to Linux-Fsdevel

2013-10-08 Thread Saket Sinha
I remember I had issues with some mailing lists if e-mail is not encoded in plain text. So what is the solution. If it is neccessary to encode the e-mail in plain-text, how do I do that? Regards, Saket Sinha ___ Kernelnewbies mailing list

lg_local_lock issue

2013-09-11 Thread Saket Sinha
have a look at this issue, I shall be grateful to you. Regards, Saket Sinha ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Dcache_lock replacement

2013-09-05 Thread Saket Sinha
SO NOW DIFFERENT PARAMETRS ARE BEING PASSED TO THE FUNCTION THIS TIME AND THIS MAYBE CAUSING THE HANG so maybe for ls VFS sent different parameters to hepunion_permission() in ls command that it did during mount. Regards, Saket Sinha On Wed, Sep 4, 2013 at 12:35 AM, Saket Sinha saket.sinh

Re: Dcache_lock replacement

2013-09-03 Thread Saket Sinha
Can you explain the code paths that are causing an issue with dcache_lock gone? I would try to explain whatever I can to the best of my ability but if further insight is needed, the code can be reffered at https://github.com/HeisSpiter/hepunion/. See I am working on a type of Union file System

Dcache_lock replacement

2013-09-02 Thread Saket Sinha
kernel driver below where I haven't been able to do the same, below- https://github.com/HeisSpiter/hepunion/blob/master/fs/hepunion/helpers.c#L373 If someone can suggest an alternative, I shall be grateful. Regards, Saket Sinha ___ Kernelnewbies mailing

Re: Understanding disassembly x86 + understanding function call + parameter pass and stack frame

2013-08-06 Thread Saket Sinha
are the other tools available? Regards, Saket Sinha On Tue, Aug 6, 2013 at 2:36 PM, nidhi mittal hada nidhimitta...@gmail.comwrote: -- Forwarded message -- From: nidhi mittal hada nidhimitta...@gmail.com Date: Tue, Aug 6, 2013 at 2:16 PM Subject: Understanding disassembly x86

Kernel Debugging

2013-08-06 Thread Saket Sinha
need to debug the driver. I am very new to kernel development. I have heard about KGDB and KDB but it takes quite a lot to get them working so waht are the other tools available? Regards, Saket Sinha ___ Kernelnewbies mailing list Kernelnewbies

System-call in Kernel Space

2013-07-19 Thread Saket Sinha
. And this allows calling system calls. This is not a good way so is there any alternative. Regards, Saket Sinha ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Inline Macro issue

2013-07-15 Thread Saket Sinha
Dear Srinivas, If you are suggesting something like #define push_root \ *{* new1 =prepare_creds(); \ new1-uid = 0; \ new1-gid = 0; \ commit_creds(new1) *}* * * Sorry I am still getting a compiler error. Regards, Saket Sinha * * On Mon

Re: Kernelnewbies Digest, Vol 32, Issue 20

2013-07-15 Thread Saket Sinha
();\ commit_creds(new2);\ }while(0) Regards, Saket Sinha On Mon, Jul 15, 2013 at 5:45 PM, Murali Annamneni a.mur...@hcl.com wrote: Hi Saket Sinha Just try as below example - #include stdio.h #define pushme \ do

Re: Inline Macro issue

2013-07-15 Thread Saket Sinha
/hepunion/cow.c:418:1: error: expected declaration or statement at end of input Which is the last line of cow.c in the driver reporitory present at https://github.com/HeisSpiter/hepunion Sorry Mandeep your code is alright ,its some other error. I do not understand. Regards, Saket Sinha On Mon

Re: Inline Macro issue

2013-07-15 Thread Saket Sinha
Russel: Thank you a curly bracket was missing. How could I not notice. Valdis: I shall take your suggestions. Mandeep: Thank you for that enlighting ideas Regards, Saket Sinha On Mon, Jul 15, 2013 at 7:52 PM, valdis.kletni...@vt.edu wrote: On Mon, 15 Jul 2013 17:39:15 +0530, Mandeep Sandhu

Re: Inline Macro issue

2013-07-15 Thread Saket Sinha
BTWI forgot to mention the problem got solved. Thanks to your suggestions. Regards, Saket Sinha On Mon, Jul 15, 2013 at 9:38 PM, Saket Sinha saket.sinh...@gmail.comwrote: Russel: Thank you a curly bracket was missing. How could I not notice. Valdis: I shall take your suggestions

Inline Macro issue

2013-07-14 Thread Saket Sinha
#define prep_root() which defines the var once for all, and that I have to put it at the begin of each function needing push_root. This is not a very good method. 2. I should still try to go with inlined functions but how ? Can someone suggest anything Regards, Saket Sinha

File system mount issue

2013-07-01 Thread Saket Sinha
that it is there. Now how do I mount it? The man page of mount says mount -t filesystem-type dev directory So I created a mount point directory like /mnt/sak. Now I issue a command mount -t hepunion /dev/sda1 /mnt sak ERROR: no filesystem of type hepunion Kindly help. Regards, Saket Sinha

Re: File system mount issue

2013-07-01 Thread Saket Sinha
Hi Daniel, It shows nodev HEPunion Regards, Saket Sinha On Mon, Jul 1, 2013 at 11:37 PM, Daniel Baluta daniel.bal...@gmail.comwrote: On Mon, Jul 1, 2013 at 8:28 PM, Saket Sinha saket.sinh...@gmail.com wrote: This is to discuss the problems I am facing with mounting our fs

Re: File system mount issue

2013-07-01 Thread Saket Sinha
Even even when I try mount -tHEPunionnone/mnt/sak I get the same error. Is it something to do with my driver code? I mean I have implemented the system call for mounting the fs then why such an error is coming? Regards, Saket Sinha On Tue, Jul 2, 2013 at 12:01 AM, Grzegorz

File-system driver issue

2013-06-25 Thread Saket Sinha
I have to port a driver from 2.6.18 to 3.8.3 Look at the below declaration of current http://lxr.free-electrons.com/source/scripts/kconfig/gconf.c#L62 Where struct menu is http://lxr.free-electrons.com/source/scripts/kconfig/expr.h#L159 The above one is in kconfig while the lower one is in the

Re: File-system driver issue

2013-06-25 Thread Saket Sinha
, 2013 at 1:44 AM, Saket Sinha saket.sinh...@gmail.com wrote: I have to port a driver from 2.6.18 to 3.8.3 Look at the below declaration of current http://lxr.free-electrons.com/source/scripts/kconfig/gconf.c#L62 Where struct menu is http://lxr.free-electrons.com/source/scripts/kconfig