Re: Boot log before panic

2024-02-09 Thread Mandeep Sandhu
How you access the log depends on the Linux distribution you're using (whether its systemd based or not). If you have journalctl, you can get the last boot log with $ journalctl -k -b 1 (-k is to get get dmesg logs) HTH, -mandeep On Fri, Feb 9, 2024 at 2:12 PM Abdulrasaq Lawani wrote: > > Hi

Re: How to handle Hotplug with UIO userspace driver

2017-09-28 Thread Mandeep Sandhu
On Thu, Sep 28, 2017 at 11:51 AM, Divakar wrote: > Hi Mandeep, > Recently i encountered similar issue with UIO framework in hotplug > scenario. I reviewed the earlier patch from 2010 and your 4 patch > series. 4 patch series seems to work. I checked the latest kernel >

Re: kgdb debug with ttyUSB0 instead of ttyS0

2017-04-25 Thread Mandeep Sandhu
> > echo ttyUSB0 > /sys/module/kgdboc/parameters/kgdboc > > but only got: > > echo write error: No such device > Is the USB-to-serial device detected on your target? Do you see a ttyUSB0 device node on your target? You can look at the kernel logs on your target when you insert the device. If the

Re: Patch Question

2017-04-17 Thread Mandeep Sandhu
On Mon, Apr 17, 2017 at 4:28 PM, Perry Hooker wrote: > Hi everyone, > > I recently submitted a patch to the kernel mailing list: > https://lkml.org/lkml/2017/3/21/712 lkml.org seems to be down! Wow, what did you do!?! :P -mandeep > > > I received some feedback on

Re: How to browse the code

2017-04-12 Thread Mandeep Sandhu
On Wed, Apr 12, 2017 at 2:46 PM, Mandeep Sandhu <mandeepsandhu@gmail.com > wrote: > On Wed, Apr 12, 2017 at 2:41 PM, Code Soldier1 <codesoldi...@gmail.com> > wrote: > >> Yes that is possible but it is very time consuming. Let's say I get >> 500 hits ? Try

Re: How to browse the code

2017-04-12 Thread Mandeep Sandhu
rch, then looks at the line of code to figure out what struct it's part of, no? :) -mandeep > > On Tue, Apr 11, 2017 at 1:13 PM, Mandeep Sandhu > <mandeepsandhu@gmail.com> wrote: > >> > >> I am looking for something that can list all the places that a certain > &

Re: How to browse the code

2017-04-11 Thread Mandeep Sandhu
> > > I am looking for something that can list all the places that a certain > field of a certain structure is used. For example, sk_buff has a field > called destructor, but so do many other data structures. How do I > search for places where just the destructor field of sk_buff. > I think lxr

Re: iptables-translate command not found

2016-10-14 Thread Mandeep Sandhu
This is query is not related to the Linux kernel, IMO. You'll find better help in MLs for the Linux distribution you're using or possibly on the netfilter ML. You should post your query there. -mandeep On Fri, Oct 14, 2016 at 6:50 AM, Gargi Sharma wrote: > Hi! > > I am

Re: rules for interface naming for on-board cards

2016-05-02 Thread Mandeep Sandhu
> > If the name contains a %d format string, the first available device > name with the given base is used; assigned numbers start at zero. > > On my base machine, I have 1 NIC card which is onboard, rest I can > remove and plug. > For the onboard card I get the interfaces as em1-4, while all the

Re: UIO driver test

2016-04-15 Thread Mandeep Sandhu
>> * Main initialization/remove routines >> */ >> static int __init uio_dummy_init(void) >> { >> printk("uio_dummy_init( )\n" ); >> uio_dummy_device = platform_device_register_simple("uio_dummy", -1, >>NULL, 0); You

Re: What are need to makes humidifier?

2016-01-12 Thread Mandeep Sandhu
Wrong list. This has nothing to do with the Linux kernel. On Tue, Jan 12, 2016 at 12:11 AM, 윤영석 wrote: > Hi, > > I want to make own humidifier. > > What sensor need when making humidifier?? > > > > humidity indicator (detecting humidity), ultrasonic waves maker?? > >

Re: [PATCH] allow strictatime to be set as a global default

2015-12-19 Thread Mandeep Sandhu
+ Enabling this option will restore historic behavior and provide perfectly > + accurate atimes, but the increase in write load may reduce performance > + and shorten the life of the block device. > + > + If unsure, say N. > + > # Use unaligned word dcache accesses > conf

Re: [PATCH] allow strictatime to be set as a global default

2015-12-18 Thread Mandeep Sandhu
You've removed the strictatime option altogether. So how does that satisfy people who _do_ want it? Is there some other option that will enable it? Just curious. -mandeep On Fri, Dec 18, 2015 at 6:42 AM, Raymond Jennings wrote: > I'm aware of a little tiff regarding

Re: [PATCH] allow strictatime to be set as a global default

2015-12-18 Thread Mandeep Sandhu
lead to reduced performance? HTH, -mandeep On Fri, Dec 18, 2015 at 2:12 PM, Raymond Jennings <shent...@gmail.com> wrote: > On Fri, Dec 18, 2015 at 10:50 AM, Mandeep Sandhu > <mandeepsandhu@gmail.com> wrote: >> >> You've removed the strictatime option altogethe

Re: UIO Kernel Driver with Buildroot and QEMU

2015-10-20 Thread Mandeep Sandhu
>> I'm on linux kernel version 3.14, and I followed the guide here: >> >> https://www.kernel.org/doc/htmldocs/uio-howto/userspace_driver.html >> >> And it describes the location on where the device file that should be >> opened by userland code as either one of two locations: >> >> /dev/uioX, with

Re: What is negative lookup in linux filesystem

2015-10-05 Thread Mandeep Sandhu
>From the context of the snippet you posted, it looks like the author implies a "failed lookup" when s/he writes "negative lookup". CMIIW. -mandeep On Mon, Oct 5, 2015 at 8:08 AM, Praveen Kumar wrote: > Hi, > > I am trying to understand the path-lookup in linux

Re: cross-compiling kernel using a 32-bit toolchain on a 64-bit machine

2015-04-07 Thread Mandeep Sandhu
Edit .config and set CONFIG_CROSS_COMPILE to the path where your cross compiler is located. This doesn't help either! :/ I'll start afresh. Maybe my setup got messed-up somehow. Thanks anyway! ___ Kernelnewbies mailing list

Re: cross-compiling kernel using a 32-bit toolchain on a 64-bit machine

2015-04-07 Thread Mandeep Sandhu
about the noise, I should've figured this out earlier. On Tue, Apr 7, 2015 at 9:15 AM, Lad, Prabhakar prabhakar.cse...@gmail.com wrote: On Mon, Apr 6, 2015 at 11:50 PM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: Hi All, I'm having trouble compiling my kernel using a 32-bit toolchain

Re: cross-compiling kernel using a 32-bit toolchain on a 64-bit machine

2015-04-07 Thread Mandeep Sandhu
On Mon, Apr 6, 2015 at 5:27 PM, John de la Garza j...@jjdev.com wrote: On Mon, Apr 06, 2015 at 03:50:41PM -0700, Mandeep Sandhu wrote: I'm having trouble compiling my kernel using a 32-bit toolchain (for ARM) on a 64-bit host (Ubuntu 14.10). The kernel version is 3.14.17. Any hints on how

cross-compiling kernel using a 32-bit toolchain on a 64-bit machine

2015-04-06 Thread Mandeep Sandhu
Hi All, I'm having trouble compiling my kernel using a 32-bit toolchain (for ARM) on a 64-bit host (Ubuntu 14.10). The kernel version is 3.14.17. I understand that 32-bit binaries require ia32-libs (or equivalent) for compiling on 64-bit hosts. I installed the required packages (lib32z1

Re: Debugging an ARP issue (no resp to ARP requests)

2015-01-20 Thread Mandeep Sandhu
dave.jing.t...@gmail.com wrote: What about arp_filter=0 arp_ignore=0? -daveti On Jan 19, 2015, at 9:14 PM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: Here's how my current setup looks like: $ ifconfig eth4 eth4 Link encap:Ethernet HWaddr 74:fe:48:04:e7:eb inet addr

Re: Debugging an ARP issue (no resp to ARP requests)

2015-01-19 Thread Mandeep Sandhu
19, 2015 at 03:42:58PM -0800, Mandeep Sandhu wrote: Hi All, Please let me know if this is not the correct ML for such a question (or if there's a more appropriate list for it). I'm currently debugging an issue where Linux is not responding to ARP requests (testing with custom network

Re: Debugging an ARP issue (no resp to ARP requests)

2015-01-19 Thread Mandeep Sandhu
You'd mentioned earlier that your setup was this: xeth0 - 192.168.2.1 xeth2 - 192.168.2.2 That looks to me like two network interfaces on the same subnet, though that's my guess since you don't show the prefix lengths. I'm guessing the subnet on both is 192.168.2/24. Correct. Netmask is

Debugging an ARP issue (no resp to ARP requests)

2015-01-19 Thread Mandeep Sandhu
Hi All, Please let me know if this is not the correct ML for such a question (or if there's a more appropriate list for it). I'm currently debugging an issue where Linux is not responding to ARP requests (testing with custom network interface h/w). I have 2 network interfaces which are

Re: Debugging an ARP issue (no resp to ARP requests)

2015-01-19 Thread Mandeep Sandhu
Have you tried to put debug prints in arp_process function? Not yet. I'm using the Ubuntu 14.10 kernel. I'm lazy and don't want to rebuild their kernel (an config), so trying to figure out if I can narrow down the problem without it! :) I don't see any drops in netstat -s output as well.

Wait times for patch submission

2015-01-06 Thread Mandeep Sandhu
Hi All, I wanted to check with ppl who frequently post patches to LKML on how long should one should wait before resending the patches in case there's no response to them. I had sent a patch on Greg KH's staging-next tree, on 16 Dec '14 to LKML and the relevant maintainers. I got a mail from

Re: Wait times for patch submission

2015-01-06 Thread Mandeep Sandhu
Ugh, that's going to require me to actually think when looking at that patch set, it might be a bit longer than a week or so :) :) Sure, I'll patiently wait for your comments! -mandeep ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Wait times for patch submission

2015-01-06 Thread Mandeep Sandhu
Thanks for your input. I'll keep it in mind for the future. -mandeep On Tue, Jan 6, 2015 at 12:29 PM, Bjørn Mork bj...@mork.no wrote: Mandeep Sandhu mandeepsandhu@gmail.com writes: Hi All, I wanted to check with ppl who frequently post patches to LKML on how long should one should

Re: Wait times for patch submission

2015-01-06 Thread Mandeep Sandhu
And normally that would have happened already, but I was on vacation for a few weeks and am still catching up on patches. Stuff like code cleanup for staging is at the bottom of my list at the moment, as it's not essencial to get merged at the moment, only in time for the next release

Re: newbies CheckpatchTips for multiline statements (Breaking function calls)

2014-12-16 Thread Mandeep Sandhu
btw: there's a perferred/preferred tyop too. Sorry, but I just couldn't ignore the irony of this. :P -mandeep ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Disable xhci_hcd USB 3.0 module

2014-12-15 Thread Mandeep Sandhu
As Greg mentioned, there's probably nothing that the software can do. You can possibly try using different hardware for your hostone that has a USB 2.0 root hub. On Mon, Dec 15, 2014 at 1:32 PM, Gustavo Duarte gus.dua...@gmail.com wrote: Greg, Thanks for confirm my thought. I tried

Re: How to send the [PATCH 0/x] kind of emails?

2014-12-14 Thread Mandeep Sandhu
Have you asked the original author about this? There has to be some reason the patch was not accepted, right? Try asking them what happened No, because the email address recorded in the patch is no longer valid. to see if they remember. I can't remember what happened with a specific

Re: Query on git usage for creating patch with incremental commits

2014-12-12 Thread Mandeep Sandhu
As others have pointed out, you need 'git rebase' here. With an interactive rebase, you can cherry-pick what you want to do with each commit (keep, edit, squash etc). It can also help you apply your changes to a different branch (using the '-- onto' option). HTH, -mandeep On Fri, Dec 12, 2014

How to send the [PATCH 0/x] kind of emails?

2014-12-12 Thread Mandeep Sandhu
How does one send this kind of summary email? Is it generated manually or through some git format-patch/send-email foo magic? I have 4 patches that I have to submit. I'd like to send a summary email (0/4) explaining the changes. Thanks, -mandeep ___

Re: How to send the [PATCH 0/x] kind of emails?

2014-12-12 Thread Mandeep Sandhu
, Dec 12, 2014 at 02:05:50PM -0800, Mandeep Sandhu wrote: How does one send this kind of summary email? Is it generated manually or through some git format-patch/send-email foo magic? I have 4 patches that I have to submit. I'd like to send a summary email (0/4) explaining the changes. git

Re: How to handle Hotplug with UIO userspace driver

2014-12-08 Thread Mandeep Sandhu
Hi Greg, I saw a patch for this very situation (UIO hotplug) being discussed on LKML almost 4 yrs back, although I don't see it in my kernel version - 3.16.0 (Ubuntu 3.16.0-24-generic). The LKML link: https://lkml.org/lkml/2010/9/20/21 Wouldn't this solve the issue? I wonder why it

Re: How to handle Hotplug with UIO userspace driver

2014-12-08 Thread Mandeep Sandhu
Sorry, sent it too soon. Here's the attached driver and userspace app for simulating a crash. You can run make to build both. Thanks, -mandeep On Mon, Dec 8, 2014 at 3:24 PM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: Hi Greg, I saw a patch for this very situation (UIO hotplug

Re: [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch

2014-10-28 Thread Mandeep Sandhu
it's pointless. Increase it to a 21st century value or kill it. -- Greg Donald But, but, but, what about all the kernel developers who are writing kernel code on VT100s and storing their sources on 80 column punch cards? Lol, I agree! There's nothing 21st century about long

Re: Checkpatch Patches

2014-09-16 Thread Mandeep Sandhu
I am fixing them first and them sending them out. I am going to listen now and only do them correctly. Nick, you're very close to being banned from kernelnewbies too, so please give some thought to other people's advise or else this might be your last email to kernelnewbies. As a first step,

Re: Loosing stdin/stdout over serial consoleafter bootup

2014-09-10 Thread Mandeep Sandhu
according to my understanding if it was a problem of kernel command line or a missing config in the kernel , then you wont have got the output while booting. but since you are getting the output while booting and the output stops once the control is handed over to your bash, that implies it

Re: Loosing stdin/stdout over serial consoleafter bootup

2014-09-09 Thread Mandeep Sandhu
are you really seriously expecting an answer within 2 hours of posting your question, and that too a question not related to any kernel problem ? And how are you so sure about that? It could very well be an incorrect kernel command line or a missing config in the kernel. So don't jump to

Re: Curious about corner case in btrfs code

2014-08-26 Thread Mandeep Sandhu
If it's a corner case, it won't be hit often enough right? And if it was hit often enough, it wouldn't be corner case!? :) These 2 are mutually exclusive! On Tue, Aug 26, 2014 at 3:47 PM, Nick xerofo...@gmail.com wrote: After reading through the code in inode.c today , I am curious about the

Re: Curious about corner case in btrfs code

2014-08-26 Thread Mandeep Sandhu
Then setup a test system which will reproduce hitting this corner case and instrument your code to see is there's any gain at all. On Tue, Aug 26, 2014 at 4:14 PM, Nick xerofo...@gmail.com wrote: On 08/26/2014 06:58 PM, Mandeep Sandhu wrote: If it's a corner case, it won't be hit often

Re: Help with btrfs project

2014-08-20 Thread Mandeep Sandhu
Agree with Jason here. If you don't find his questions palatable, just _ignore_ them instead of sending rants and sarcastic emails which just wastes more of your own time. That way the SNR of this list will improve! :) On Wed, Aug 20, 2014 at 8:46 AM, Jason Conklin jason.conk...@gmail.com wrote:

Re: [PATCH] usb: Fix switch statement in ohci-tmio.c

2014-08-14 Thread Mandeep Sandhu
Look I got off on the wrong start and I am starting to improve my repo but seems If you think you're improving your rep with these poor patches, you're delusional. impossible if people are just going to forget about my good patches. We'll discuss that when you actually submit one that

Re: Bad Patches and Issues with other devolopers

2014-08-06 Thread Mandeep Sandhu
-1 I don't support a ban for Nick on this list. If he's genuinely affected by a learning problem then we need to take that into account before jumping to a conclusion. Nick, Advice for you is to NOT worry about whether you're part of kernelnewbies/vger lists or not. Just concentrate on learning

Re: git merge issues

2014-06-11 Thread Mandeep Sandhu
Now my question is that do I need to solve the merging issue manually or is there any way to solve this using git? This is in no way related to the Linux kernel. You should be asking this on the git mailing list. Short answer - you will have to manually fix the conflict. Git could not do it

Re: Can a Bottom half be scheduled from a kernel thread

2014-05-13 Thread Mandeep Sandhu
For example, if there is some work which is prepared ready by a kernel thread (but thread dont want to process it immediately, rather want to deffer it for sometime) and the intention is to process this prapared work at some later time. In the situation like this, can we use the tasklet to do

Re: Eudyptula Challenge

2014-05-05 Thread Mandeep Sandhu
+1 to this question. I too started off early, but now I'm busy with my current work and paused on the assignments. -mandeep On Mon, May 5, 2014 at 5:25 PM, Narendra Joshi narendr...@gmail.com wrote: Will the Eudyptula Challenge be always around? I want to do the challenge problems but I am

Re: thread context switching

2014-03-18 Thread Mandeep Sandhu
On Tue, Mar 18, 2014 at 10:24 PM, valdis.kletni...@vt.edu wrote: On Tue, 18 Mar 2014 19:01:50 +0300, Nada Saif said: I want to measure thread context switching in c, How I can do that? Looks suspiciously like an interview-type question? :) What are you trying to measure, exactly, and why?

Re: Does register_chrdev function make device file under /dev ?

2014-03-11 Thread Mandeep Sandhu
On Tue, Mar 11, 2014 at 1:31 PM, Kim Chan c...@etri.re.kr wrote: Yeah, I know mknod command. I just wanted to know if the register_chrdev makes the file or not. It doesn't. Also note that this is the old way of registering a char device. New code should use cdev_add() etc. To my

Re: A new way to dive into the kernel!

2014-03-10 Thread Mandeep Sandhu
mallesh.koujalagi.sandi...@gmail.com wrote: Good info, thanks for sharing On Tue, Mar 4, 2014 at 8:38 PM, Amit Saha amitsaha...@gmail.com wrote: On Wed, Mar 5, 2014 at 2:19 PM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: Came across this in Greg (KH)s G+ feed. http://eudyptula-challenge.org

Re: Assigning an unique name to USB CDC device in /dev

2014-03-05 Thread Mandeep Sandhu
You need persistent device naming rules in udev. The udev rules will basically match cretain device attributes you specify in the rules file and then create device nodes/symlinks for it. So, first you need to find what those _unique_ attributes are for your device, and then write it as a udev

A new way to dive into the kernel!

2014-03-04 Thread Mandeep Sandhu
Came across this in Greg (KH)s G+ feed. http://eudyptula-challenge.org/ Thought I'd share it here too in case someone missed it. Looks like a fun and interesting way to start off doing stuff in the kernel! HTH, -mandeep ___ Kernelnewbies mailing

Re: Updating a driver quirk in kernel

2014-01-29 Thread Mandeep Sandhu
Is this driver loaded as a kernel module? If so, you only need to rebuild the module against your target kernel and distribute the new module to the various machines. If it's a builtin driver, then it'll be a little more involved. If distributing the new kernel is not feasible have a look at

Re: kernel driver access application memory

2014-01-16 Thread Mandeep Sandhu
On Wed, Jan 15, 2014 at 11:45 PM, m silverstri michael.j.silvers...@gmail.com wrote: Hi, If my application allocate memory for input and output buffers, and pass the pointer to a kernel driver (via v4l2 queue buffer operation), can the kernel driver access it? Do I need to setup DMA before

Re: Recovering Linux system from hung state via software

2013-12-04 Thread Mandeep Sandhu
assuming one mother process is monitoring 10 child process, so inside each child process, simply just setup a PERIODIC (eg, per 5 sec) mechanism to toggle a binary variables through IPC means. It will be reset when the mother process go around checking all the variable status and, if not

Re: Recovering Linux system from hung state via software

2013-12-04 Thread Mandeep Sandhu
You could also look at using existing s/w for monitoring processes like monit. I don't know your exact usecase but you could make your process as a 'service' and have something like systemd or upstart monitor it. These tools will typically 'restart' the hung process on detection. -mandeep On

Re: Issue while unloading modules via modprobe

2013-12-03 Thread Mandeep Sandhu
error = system(modprobe -rv A); This returns an error = 256. What does 'perror' show (if anything) ? Also, if you try the same via a shel, whats the return value ('echo $?') printed? BTW, why are you using the '-v' option when invoking modprobe programatically? -mandeep

Re: Issue while unloading modules via modprobe

2013-12-03 Thread Mandeep Sandhu
echo $? show 1 (EPERM? most probably, operation not permitted for common module). Hmmm...strange. What does 'dmesg' show when this happens? Is anything related to an error printed there? -mandeep ___ Kernelnewbies mailing list

Re: Updating the kernel

2013-11-18 Thread Mandeep Sandhu
Yes, Ksplice offers this feature. Though check with them if your specific distro is supported. Or if you're compiling your own kernel then I guess you'll have to send them the new image which they convert to a reboot-less image which can be applied to a running system. -mandeep On Tue, Nov 19,

Re: Best practice to lock a read/write to a HW register

2013-11-14 Thread Mandeep Sandhu
On Thu, Nov 14, 2013 at 4:02 PM, Luca Ellero lro...@gmail.com wrote: Hi all, can someone please show me which is the best practice to lock a read/write to a hardware register. In other words if, in a driver, I want to modify a bit in a HW register, I have to read the register, set/reset the

Re: What is the best distro for starting linux kernel development?

2013-11-13 Thread Mandeep Sandhu
On Wed, Nov 13, 2013 at 3:40 PM, Naman Shekhar Mishra mishra123.na...@gmail.com wrote: Hi mentors, I have been studying the Linux kernel for some time and now I am going to try and get my hands hands dirty with the kernel. Can you please tell me what is the best distro for this? I have

Re: What is the best distro for starting linux kernel development?

2013-11-13 Thread Mandeep Sandhu
On Wed, Nov 13, 2013 at 5:00 PM, Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: Linus Torvalds and Alan Cox use Fedora(or other redhat distros), though Alan talked about shifting to other distros due to his annoyance with Fedora. Nit -picking here...but Linus does not Fedora...if

Re: What is the best distro for starting linux kernel development?

2013-11-13 Thread Mandeep Sandhu
Why not ask him? :-D Straight from the horse's mouth! :) -mandeep PS: Put your fire-retardant suit and fire away on LKML! :P ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: ALIGN MACRO understanding

2013-11-08 Thread Mandeep Sandhu
On Fri, Nov 8, 2013 at 1:53 PM, anish singh anish198519851...@gmail.com wrote: On Nov 6, 2013 10:38 PM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: On Thu, Nov 7, 2013 at 11:04 AM, sdptr...@gmail.com sdptr...@gmail.com wrote: While going through kernel source , I came across

Re: ALIGN MACRO understanding

2013-11-06 Thread Mandeep Sandhu
On Thu, Nov 7, 2013 at 11:04 AM, sdptr...@gmail.com sdptr...@gmail.com wrote: While going through kernel source , I came across this ALIGN macro #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) and #define __ALIGN_KERNEL(x, a)__ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1)

Re: What to do with branches after submitting patches?

2013-10-11 Thread Mandeep Sandhu
Is it possible to use a github repository and just send a please pull from g...@github.com message to the kernel mailinglist, or will I be beaten for this? You cannot directly send a pull request until the patches are reviewed, once the the driver maintainer and other folks in the

Re: What to do with branches after submitting patches?

2013-10-11 Thread Mandeep Sandhu
On Fri, Oct 11, 2013 at 3:55 PM, Prabhakar Lad prabhakar.cse...@gmail.comwrote: On Fri, Oct 11, 2013 at 3:55 PM, Prabhakar Lad prabhakar.cse...@gmail.com wrote: On Fri, Oct 11, 2013 at 3:34 PM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: Is it possible to use a github

Changing location of disk/filesystem cache

2013-10-10 Thread Mandeep Sandhu
Hi All, I have a newbie question on disk/filesystem caches, so please bear with me! :) * Is disk cache the same as filesystem cache? Or there's nothing like a filesysten cache and all disk I/O, irrespective of what FS is being accessed, is cached in a disk cache? * Is this caching done at the

Re: Changing location of disk/filesystem cache

2013-10-10 Thread Mandeep Sandhu
On Thu, Oct 10, 2013 at 5:00 PM, Ulka Vaze ulka.v...@l2it.com wrote: Hi, disk cache is same as filesystem cache. Also called buffer cache. This is implemneted below fs layer. It is basically a cache of disk blocks mainatined in RAM. (In pages) called buffers. Ok. So this won't contain

Re: Changing location of disk/filesystem cache

2013-10-10 Thread Mandeep Sandhu
On Thu, Oct 10, 2013 at 6:00 PM, Greg Freemyer greg.freem...@gmail.comwrote: Mandeep Sandhu mandeepsandhu@gmail.com wrote: On Thu, Oct 10, 2013 at 5:00 PM, Ulka Vaze ulka.v...@l2it.com wrote: Hi, disk cache is same as filesystem cache. Also called buffer cache

Re: some basic doubts / confusion regarding linux kernel / OS

2013-10-03 Thread Mandeep Sandhu
On Thu, Oct 3, 2013 at 10:38 PM, ajay saini ajay_saini1...@yahoo.co.inwrote: Hi, I had some confusion/doubts regarding Linux kernel / OS and I want to be completely sure that my understanding is right for below, and need your inputs (would be really glad for your help): - There are

Re: anyone compiling busybox with arm-eabi- cross compile toolchain???

2013-09-20 Thread Mandeep Sandhu
On Fri, Sep 20, 2013 at 12:19 PM, sandeep kumar coolsandyfor...@gmail.comwrote: Hi All i am facing some build errors with busy box compilation with CROSS_COMPILE=arm-eabi- Busybox version: 1.21.1 Error: In file included from include/libbb.h:13:0, from

Re: BSP and the kernel

2013-09-18 Thread Mandeep Sandhu
BSP stands for board support packageso it'll contain stuff to make the kernel run on that specific h/w (eg: header files detailing the memory map of the attached devices etc.). If you have a builtin driver for the attached h/w, then yes, that code will be compiled into your vmlinux image. If

Re: Yaffs2 on None-ECC MTD

2013-08-20 Thread Mandeep Sandhu
Just report back the list: I've managed to mount root from NFS, by which I can use pure Linux way to prepare my root filesystems to yaffs2 and enable HW ECC in MTD layer only. Then I can ignore the mismatch between u-boot and kernel in the ways they handing NAND OOB area. But your

Re: Network Driver From Scrach

2013-08-06 Thread Mandeep Sandhu
There's a nice write-up about the n/w stack here: http://media.wix.com/ugd//295986_a3dcb13a2f46d15cb75abab021a239da.pdf It'll give you a start in understanding how the packet traverses the stack. -mandeep On Tue, Aug 6, 2013 at 10:52 PM, Robert Clove cloverob...@gmail.com wrote: Hi All,

Re: implicit declaration of some function error

2013-07-19 Thread Mandeep Sandhu
On Fri, Jul 19, 2013 at 3:38 PM, Ritesh Ranjan r.ranjan...@gmail.comwrote: I keep getting implicit declaration of some function error quite often. So I'm assuming I am not adding the correct header files when I am writing the module. eg. I wanted to create a kernel thread using

Re: Inline Macro issue

2013-07-15 Thread Mandeep Sandhu
On Mon, Jul 15, 2013 at 4:50 PM, Saket Sinha saket.sinh...@gmail.comwrote: Mandip: Error is expected error or declaration at the end of input Without looking at the code, it's difficult to comment further. Can you attach a small compilable example which exhibits the error? -mandeep

Re: Inline Macro issue

2013-07-15 Thread Mandeep Sandhu
. Now, I have told everything. Can someone suggest something that might work. Regards, Saket Sinha On Mon, Jul 15, 2013 at 5:07 PM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: On Mon, Jul 15, 2013 at 4:50 PM, Saket Sinha saket.sinh...@gmail.comwrote: Mandip: Error

Re: Inline Macro issue

2013-07-15 Thread Mandeep Sandhu
the local scope now. -mandeep P.S.-I can give my system on remote via Team Viewer, if you want to try. Regards, Saket Sinha On Mon, Jul 15, 2013 at 5:39 PM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: How about: #define push_root() \ recursive_mutex_lock(context

Re: Kernel 64bit

2013-05-24 Thread Mandeep Sandhu
On Thu, May 23, 2013 at 3:38 PM, Giridhara RP (grp) g...@cisco.com wrote: I did not see any file (vmlinuz-version.x86_64) under /boot. I was only looking at bzImage found under arch/boot/ . Am I missing something? Can you look at the 'running' kernel's config to see if it's indeed the one you

Re: pthread_lock

2013-03-05 Thread Mandeep Sandhu
On Tue, Mar 5, 2013 at 11:32 AM, valdis.kletni...@vt.edu wrote: On Tue, 05 Mar 2013 11:02:45 +0530, Mandeep Sandhu said: next schedule. I think the waiting threads (processes) will moved from the wait queue to the run queue from where they will be scheduled to run. For bonus points, read

Re: pthread_lock

2013-03-04 Thread Mandeep Sandhu
On Tue, Mar 5, 2013 at 10:14 AM, ishare june.tune@gmail.com wrote: when pthread_unlock(mutex) is called , do other threads waiting for mutex be waked up immediately? or be waked up at the next schedule? next schedule. I think the waiting threads (processes) will moved from the wait

Re: Why would some process swap in place of reclaiming free(cached) memory

2013-02-20 Thread Mandeep Sandhu
I know the pages are kept on disk initially and then swapped in as needed/referenced. Thus if there are code pages where none of the code in the page has been executed since starting the app, then that page will remain on disk until the application logic eventually invokes it. At that

Re: Use of copy_to_user() and copy_from_user() functions

2013-02-11 Thread Mandeep Sandhu
On Mon, Feb 11, 2013 at 4:51 PM, पारस bepa...@gmail.com wrote: Hi All, To read/write data to user-space from kernel-space we use copy_from_user() and copy_to_user() functions. What is the use of these function? Why kernel can't directly access user address and read/write on to it? Can any

Re: Linux Kernel Networking document (free, 178 pages doc)

2013-01-28 Thread Mandeep Sandhu
On Mon, Jan 28, 2013 at 10:23 PM, Rami Rosen roszenr...@gmail.com wrote: Hi everyone, You can find here an up to date and detailed document in pdf (178 pages) about Linux Kernel Networking; going deep into design and implementation details as well as the theory behind it:

Re: GRUB question

2013-01-27 Thread Mandeep Sandhu
On Mon, Jan 28, 2013 at 2:07 AM, horseriver horseriv...@gmail.com wrote: hi:) Is /boot/initrd.img a root filesystem? what is the filetype of it? Yes, it's a rootfs with minimal stuff needed for booting a workable system. why does this matter. doing 'file /boot/initrd.img' on my system

Re: Network Byte order not reached reading from a sock RAW

2012-10-16 Thread Mandeep Sandhu
or host byte order. Only inspecting the code will tell. HTH, -mandeep Many thanks, Pietro. -Original Message- From: Mandeep Sandhu [mailto:mandeepsandhu@gmail.com] Sent: lunedì 15 ottobre 2012 10:33 To: Pietro Paolini Cc: kernelnewbies@kernelnewbies.org Subject: Re: Network Byte

Re: Network Byte order not reached reading from a sock RAW

2012-10-15 Thread Mandeep Sandhu
this though). CMIIW, as I haven't touched sockets in a long time! :) HTH, -mandeep Thanks Pietro Paolini. From: Mandeep Sandhu [mailto:mandeepsandhu@gmail.com] Sent: sabato 13 ottobre 2012 05:30 To: Pietro Paolini Cc: kernelnewbies@kernelnewbies.org Subject: Re: Network Byte order

Re: Network Byte order not reached reading from a sock RAW

2012-10-12 Thread Mandeep Sandhu
On Oct 12, 2012 9:36 PM, Pietro Paolini p.paol...@ext.adbglobal.com wrote: Hello, I am struggling with the byte order question on a x86_32 arch, I am doing some modifications on a program which actually works fine on a MIPS arch. I do a reading from a RAW socket in this way: /*

Re: Macro explanation

2012-03-11 Thread Mandeep Sandhu
On Mon, Mar 12, 2012 at 1:03 AM, Vijay Chauhan kernel.vi...@gmail.com wrote: On Sat, Mar 10, 2012 at 12:10 AM, Manohar Vanga manohar.va...@gmail.com wrote: Also, from the archives: http://www.mail-archive.com/kernelnewbies@nl.linux.org/msg12320.html Thank you for links which gives good

Re: Get USB Device Class Type and Mount point

2012-02-13 Thread Mandeep Sandhu
greg k-h I am trying to find out if any storage disk is connected to USB port and get its mount so that I an encrypt that mount with encrypted filesystem. Great, then do that from userspace, like it is done today.  Or do you have a problem with how things are done today with encrypted

Re: What is Backing device used for?

2011-12-05 Thread Mandeep Sandhu
Is there any document which explain what backing device used for? Have a look at the initramfs doc to get brief idea: http://www.mjmwired.net/kernel/Documentation/filesystems/ramfs-rootfs-initramfs.txt From what I've understood, is that backing device/store is the device onto which _committed_

Re: busybox utility

2011-11-22 Thread Mandeep Sandhu
I post on Kernel newbies since i could not found any good place to post. We do not want to use busybox due to its licence and security issue. What security issue are you concerned about? Can you explain your concern a little more. Also, if you have some busybox specific question, ppl on the

Re: Getting 'bad file number' error writing to device driver

2011-10-19 Thread Mandeep Sandhu
Thanks for the link; but this bit has to be set on the original executable. Is there any way a program in user mode can get around this or set the bit himself? Ummm...now that would be a security violation, don't you think? If a program can elevate it's own privileges, then whats the point of

Re: question about oops and panic

2011-08-29 Thread Mandeep Sandhu
1. I think oops and panic are both some way to deal with errors occurs in kernel space. Is there any relationship between them? AFAIK both are same. Really? I thought oops would be generated for critical errors like processor exceptions etc when a kernel CANNOT proceed further in a reliable

Re: Need basics of booting process

2011-07-11 Thread Mandeep Sandhu
video to learn more about Upstart: http://www.youtube.com/watch?v=ssnZBQqnze8 Thanks for this link. -mandeep ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: interview question how does application connects to device

2011-07-05 Thread Mandeep Sandhu
On Tue, Jul 5, 2011 at 12:29 PM, Paraneetharan Chandrasekaran paraneethar...@gmail.com wrote: I think the thread originator is asking about how the application knows which device file to read or write. This is done by h/w management system udev. udev creates/manages device nodes in /dev/ dir

Re: interview question how does application connects to device

2011-07-05 Thread Mandeep Sandhu
Oops, accidentally pressed send... On Tue, Jul 5, 2011 at 12:58 PM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: On Tue, Jul 5, 2011 at 12:29 PM, Paraneetharan Chandrasekaran paraneethar...@gmail.com wrote: I think the thread originator is asking about how the application knows which

  1   2   >