Re: shared memory

2007-12-16 Thread Luciano Rocha
? Does it share user level memory? Yes. They both do, but the Posix one is based on a ramfs or tmpfs on /dev/shm and shared mmaps. I think analyzing the SysV version will be better for your needs. shmget: create the memory region shmat: attach the memory region to this process. -- Luciano Rocha

Re: [RFC] Documentation about unaligned memory access

2007-11-24 Thread Luciano Rocha
On Sat, Nov 24, 2007 at 02:34:41PM +0100, Pierre Ossman wrote: On Fri, 23 Nov 2007 00:15:53 + (GMT) Daniel Drake [EMAIL PROTECTED] wrote: Being spoilt by the luxuries of i386/x86_64 I've never really had a good grasp on unaligned memory access problems on other architectures and

Re: [RFC] Documentation about unaligned memory access

2007-11-24 Thread Luciano Rocha
On Sat, Nov 24, 2007 at 05:19:31PM +0100, Pierre Ossman wrote: On Sat, 24 Nov 2007 15:50:52 + Luciano Rocha [EMAIL PROTECTED] wrote: Dumb memcpy (while (len--) { *d++ = *s++ }) will have alignment problems in any case. Intelligent ones, like the one provided in glibc, first copy

Re: [RFC] Documentation about unaligned memory access

2007-11-24 Thread Luciano Rocha
On Sat, Nov 24, 2007 at 06:35:25PM +0100, Pierre Ossman wrote: On Sat, 24 Nov 2007 17:22:36 + Luciano Rocha [EMAIL PROTECTED] wrote: On Sat, Nov 24, 2007 at 05:19:31PM +0100, Pierre Ossman wrote: It most certainly does not. gcc will assume that an int* has int alignment. memcpy

Re: [RFT] Port 0x80 I/O speed

2007-12-12 Thread Luciano Rocha
: 256 KB -- Luciano Rocha [EMAIL PROTECTED] Eurotux Informática, S.A. http://www.eurotux.com/ pgpNPo6XbBfoE.pgp Description: PGP signature

Re: ldminfo compilation

2007-12-12 Thread Luciano Rocha
to build this are out of date... Those are for the kernel module setting the partition tables. If you're only interested in the ldminfo utility: make -C ldmutil CPP='g++ -static' Substitute g++ for the C++ compiler you want to use. -- Luciano Rocha [EMAIL PROTECTED] Eurotux Informática, S.A. http

Re: ldminfo compilation

2007-12-12 Thread Luciano Rocha
On Wed, Dec 12, 2007 at 04:57:39PM +0200, Alon Bar-Lev wrote: On 12/12/07, Luciano Rocha [EMAIL PROTECTED] wrote: Those are for the kernel module setting the partition tables. If you're only interested in the ldminfo utility: make -C ldmutil CPP='g++ -static' Substitute g++ for the C

Re: ldminfo compilation

2007-12-12 Thread Luciano Rocha
On Wed, Dec 12, 2007 at 03:29:55PM +, Luciano Rocha wrote: On Wed, Dec 12, 2007 at 04:57:39PM +0200, Alon Bar-Lev wrote: On 12/12/07, Luciano Rocha [EMAIL PROTECTED] wrote: Those are for the kernel module setting the partition tables. If you're only interested in the ldminfo utility

Re: shared memory

2007-12-16 Thread Luciano Rocha
the kernel for that memory and use it (as its own). I managed to build a structure on the kernel. Why? Aren't SysV IPC or Posix IPC enough? See man shm_open, for the new Posix version, and man shmget for the old SysV IPC version. -- Luciano Rocha [EMAIL PROTECTED] Eurotux Informática, S.A. http

sysfs: duplicate filename 'card0' can not be created

2008-02-13 Thread Luciano Rocha
/usb1/1-1/1-1.3/1-1.3:1.3/input/input7 [.537041] input: USB HID v1.00 Device [USB Audio] on usb-:02:04.2-1.3 -- Luciano Rocha [EMAIL PROTECTED] Eurotux Informática, S.A. http://www.eurotux.com/ pgpvlKBiSmUVN.pgp Description: PGP signature

Re: sysfs: duplicate filename 'card0' can not be created

2008-02-14 Thread Luciano Rocha
On Wed, Feb 13, 2008 at 03:09:21PM +, Luciano Rocha wrote: On Wed, Feb 13, 2008 at 03:21:38PM +0100, Takashi Iwai wrote: At Wed, 13 Feb 2008 14:05:27 +, Luciano Rocha wrote: Hello, Is this known? I got the error while connecting usb headphones, running vanilla 2.6.24

can't change euid 0 to uid != running user

2007-10-05 Thread Luciano Rocha
Hello, I have the following problem: $ sudo -u ie -s # or sudo su ie unable to change to runas uid: Resource temporarily unavailable Works: $ sudo su, followed by su ie The first sudo also worked while I had a shell under user ie. When I exited, it stopped working, but it is now working every

lguest compilation problem in 2.6.23-rc9

2007-10-05 Thread Luciano Rocha
$ git describe v2.6.23-rc9 $ make ... BUILD arch/i386/boot/bzImage Root device is (254, 3) Setup is 11496 bytes (padded to 11776 bytes). System is 1233 kB Kernel: arch/i386/boot/bzImage is ready (#1) Building modules, stage 2. MODPOST 282 modules ERROR: kasprintf [drivers/lguest/lg.ko]

Re: can't change euid 0 to uid != running user

2007-10-05 Thread Luciano Rocha
On Fri, Oct 05, 2007 at 08:28:50AM -0700, Ray Lee wrote: On 10/5/07, Luciano Rocha [EMAIL PROTECTED] wrote: I have the following problem: $ sudo -u ie -s # or sudo su ie unable to change to runas uid: Resource temporarily unavailable Works: $ sudo su, followed by su ie The first

Re: can't change euid 0 to uid != running user

2007-10-07 Thread Luciano Rocha
On Fri, Oct 05, 2007 at 08:28:50AM -0700, Ray Lee wrote: On 10/5/07, Luciano Rocha [EMAIL PROTECTED] wrote: I have the following problem: $ sudo -u ie -s # or sudo su ie unable to change to runas uid: Resource temporarily unavailable Works: $ sudo su, followed by su ie The first

data disclosure in ioctl sg inquiry

2007-08-27 Thread Luciano Rocha
?). I can't reproduce this on a firewire connected HDD, but I can with another USB connecte one (not locked). Regards, Luciano Rocha -- lfr 0/0 # sda is firewire, unlocked, sdb is usb, locked, and sdc is usb, unlocked $ ./keytool /dev/sda Some of the INQUIRY command's response: 00 00 04 02 1f 00 00

data disclosure in ioctl sg inquiry

2007-08-27 Thread Luciano Rocha
files?). I can't reproduce this on a firewire connected HDD, but I can with another USB connecte one (not locked). Regards, Luciano Rocha -- lfr 0/0 # sda is firewire, unlocked, sdb is usb, locked, and sdc is usb, unlocked $ ./keytool /dev/sda Some of the INQUIRY command's response: 00 00 04 02

can't change euid 0 to uid != running user

2007-10-05 Thread Luciano Rocha
Hello, I have the following problem: $ sudo -u ie -s # or sudo su ie unable to change to runas uid: Resource temporarily unavailable Works: $ sudo su, followed by su ie The first sudo also worked while I had a shell under user ie. When I exited, it stopped working, but it is now working every

lguest compilation problem in 2.6.23-rc9

2007-10-05 Thread Luciano Rocha
$ git describe v2.6.23-rc9 $ make ... BUILD arch/i386/boot/bzImage Root device is (254, 3) Setup is 11496 bytes (padded to 11776 bytes). System is 1233 kB Kernel: arch/i386/boot/bzImage is ready (#1) Building modules, stage 2. MODPOST 282 modules ERROR: "kasprintf" [drivers/lguest/lg.ko]

Re: can't change euid 0 to uid != running user

2007-10-05 Thread Luciano Rocha
On Fri, Oct 05, 2007 at 08:28:50AM -0700, Ray Lee wrote: > On 10/5/07, Luciano Rocha <[EMAIL PROTECTED]> wrote: > > I have the following problem: > > $ sudo -u ie -s # or sudo su ie > > unable to change to runas uid: Resource temporarily unavailable > > > >

Re: can't change euid 0 to uid != running user

2007-10-07 Thread Luciano Rocha
On Fri, Oct 05, 2007 at 08:28:50AM -0700, Ray Lee wrote: > On 10/5/07, Luciano Rocha <[EMAIL PROTECTED]> wrote: > > I have the following problem: > > $ sudo -u ie -s # or sudo su ie > > unable to change to runas uid: Resource temporarily unavailable > > > >

Re: [RFT] Port 0x80 I/O speed

2007-12-12 Thread Luciano Rocha
: 1917.229 cache size : 256 KB -- Luciano Rocha <[EMAIL PROTECTED]> Eurotux Informática, S.A. <http://www.eurotux.com/> pgpNPo6XbBfoE.pgp Description: PGP signature

Re: [RFC] Documentation about unaligned memory access

2007-11-24 Thread Luciano Rocha
On Sat, Nov 24, 2007 at 02:34:41PM +0100, Pierre Ossman wrote: > On Fri, 23 Nov 2007 00:15:53 + (GMT) > Daniel Drake <[EMAIL PROTECTED]> wrote: > > > Being spoilt by the luxuries of i386/x86_64 I've never really had a good > > grasp on unaligned memory access problems on other architectures

Re: [RFC] Documentation about unaligned memory access

2007-11-24 Thread Luciano Rocha
On Sat, Nov 24, 2007 at 05:19:31PM +0100, Pierre Ossman wrote: > On Sat, 24 Nov 2007 15:50:52 + > Luciano Rocha <[EMAIL PROTECTED]> wrote: > > > > > Dumb memcpy (while (len--) { *d++ = *s++ }) will have alignment problems > > in any case. Intelligent one

Re: [RFC] Documentation about unaligned memory access

2007-11-24 Thread Luciano Rocha
On Sat, Nov 24, 2007 at 06:35:25PM +0100, Pierre Ossman wrote: > On Sat, 24 Nov 2007 17:22:36 + > Luciano Rocha <[EMAIL PROTECTED]> wrote: > > > On Sat, Nov 24, 2007 at 05:19:31PM +0100, Pierre Ossman wrote: > > > It most certainly does not. gcc wi

Re: ldminfo compilation

2007-12-12 Thread Luciano Rocha
yway. > > Looking at the sources, it seems that the linux headers used in order > to build this are out of date... Those are for the kernel module setting the partition tables. If you're only interested in the ldminfo utility: make -C ldmutil CPP='g++ -static' Substitute g++ for the C

Re: ldminfo compilation

2007-12-12 Thread Luciano Rocha
On Wed, Dec 12, 2007 at 04:57:39PM +0200, Alon Bar-Lev wrote: > On 12/12/07, Luciano Rocha <[EMAIL PROTECTED]> wrote: > > Those are for the kernel module setting the partition tables. If you're > > only interested in the ldminfo utility: > > make -C ldmutil CPP='g++ -s

Re: ldminfo compilation

2007-12-12 Thread Luciano Rocha
On Wed, Dec 12, 2007 at 03:29:55PM +, Luciano Rocha wrote: > On Wed, Dec 12, 2007 at 04:57:39PM +0200, Alon Bar-Lev wrote: > > On 12/12/07, Luciano Rocha <[EMAIL PROTECTED]> wrote: > > > Those are for the kernel module setting the partition tables. If you'

Re: shared memory

2007-12-16 Thread Luciano Rocha
client process may ask the kernel for that memory and use it (as > its own). > I managed to build a structure on the kernel. Why? Aren't SysV IPC or Posix IPC enough? See "man shm_open", for the new Posix version, and "man shmget" for the old SysV IPC version. -- Lucia

Re: shared memory

2007-12-16 Thread Luciano Rocha
shmget would do? Does it share user level memory? Yes. They both do, but the Posix one is based on a ramfs or tmpfs on /dev/shm and shared mmaps. I think analyzing the SysV version will be better for your needs. shmget: create the memory region shmat: attach the memory region to this process. -- L

sysfs: duplicate filename 'card0' can not be created

2008-02-13 Thread Luciano Rocha
/usb1/1-1/1-1.3/1-1.3:1.3/input/input7 [.537041] input: USB HID v1.00 Device [USB Audio] on usb-:02:04.2-1.3 -- Luciano Rocha <[EMAIL PROTECTED]> Eurotux Informática, S.A. <http://www.eurotux.com/> pgpvlKBiSmUVN.pgp Description: PGP signature

Re: sysfs: duplicate filename 'card0' can not be created

2008-02-13 Thread Luciano Rocha
On Wed, Feb 13, 2008 at 03:21:38PM +0100, Takashi Iwai wrote: > At Wed, 13 Feb 2008 14:05:27 +, > Luciano Rocha wrote: > > > > Hello, > > > > Is this known? I got the error while connecting usb headphones, running > > vanilla 2.6.24. > > Not

Re: sysfs: duplicate filename 'card0' can not be created

2008-02-14 Thread Luciano Rocha
On Wed, Feb 13, 2008 at 03:09:21PM +, Luciano Rocha wrote: > On Wed, Feb 13, 2008 at 03:21:38PM +0100, Takashi Iwai wrote: > > At Wed, 13 Feb 2008 14:05:27 +0000, > > Luciano Rocha wrote: > > > > > > Hello, > > > > > > Is this known? I got