Re: accessing user memory from kernel

2021-04-19 Thread Mike Larkin
On Mon, Apr 19, 2021 at 11:27:29PM +0200, Alessandro Pistocchi wrote:
> Hi all,
>
> I am playing around with openbsd kernel source code.
> Is there any clean way of accessing a process' memory from inside the
> kernel?
>
> Thanks,
> Alessandro

man copyin



accessing user memory from kernel

2021-04-19 Thread Alessandro Pistocchi
Hi all,

I am playing around with openbsd kernel source code.
Is there any clean way of accessing a process' memory from inside the
kernel?

Thanks,
Alessandro


Re: sndio: way to play and record from different devices?

2021-04-19 Thread Alexandre Ratchov
On Mon, Apr 19, 2021 at 09:40:37AM -0500, Ax0n wrote:
> I have a nice microphone attached to a USB sound device, but I'd like to
> rely on my computer's built-in line out for speakers from the same program
> (e.g. Audacity, Firefox). It feels like sndio might have some way to let
> programs use snd/0.play and snd/1.rec, or a way to make snd/1 the default
> device for record and snd/0 the default for play, or maybe even a virtual
> sound device, but I haven't been able to sort out how to make it work.
> 

There's no way (yet) to combine a play-only and a rec-only device into
a single full-duplex one.

Certain programs don't need full-duplex capability and can use two
independent devices; firefox and audacity are not part of them
unfortunately. Sorry.



Re: sndio: way to play and record from different devices?

2021-04-19 Thread Stuart Henderson
On 2021-04-19, Ax0n  wrote:
> I have a nice microphone attached to a USB sound device, but I'd like to
> rely on my computer's built-in line out for speakers from the same program
> (e.g. Audacity, Firefox). It feels like sndio might have some way to let
> programs use snd/0.play and snd/1.rec, or a way to make snd/1 the default
> device for record and snd/0 the default for play, or maybe even a virtual
> sound device, but I haven't been able to sort out how to make it work.
>
> Ideas?
>

see sndio(7) :-

ENVIRONMENT
   AUDIODEVICE  Audio device descriptor to use when no descriptor is
explicitly specified to a program.
   AUDIOPLAYDEVICE  Audio device descriptor to use for play-only mode when no
descriptor is explicitly specified to a program.  Overrides
AUDIODEVICE.
   AUDIORECDEVICE   Audio device descriptor to use for record-only mode when no
descriptor is explicitly specified to a program.  Overrides
AUDIODEVICE.




sndio: way to play and record from different devices?

2021-04-19 Thread Ax0n
I have a nice microphone attached to a USB sound device, but I'd like to
rely on my computer's built-in line out for speakers from the same program
(e.g. Audacity, Firefox). It feels like sndio might have some way to let
programs use snd/0.play and snd/1.rec, or a way to make snd/1 the default
device for record and snd/0 the default for play, or maybe even a virtual
sound device, but I haven't been able to sort out how to make it work.

Ideas?