From: "Alexey V. Vissarionov" <gremlin@altlinux.org> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: Re: [devel] можно ли запретить загружать модуль ядра для конкретного девайса Date: Wed, 7 Dec 2022 18:04:01 +0300 Message-ID: <20221207150401.GA23396@altlinux.org> (raw) In-Reply-To: <f2a39f48-0624-18b8-63c2-d115de364328@basealt.ru> On 2022-12-07 13:24:48 +0700, Ilya Kurdyukov wrote: >> Затем, что у меня есть свой инструмент работы с этим >> чипом. На libusb, но эти модули ядра забирают контроль >> над устройством и libusb подключиться к нему не может. > Нашел способ решения этого, в libusb предусмотрен специальный > костыль, чтобы отобрать устройство у драйверов ядра. Через /sys/bus/usb/drivers/cdc_acm/unbind ? Или? Пользоваться libusb мне доводилось, но подобных сложностей никогда не возникало. > Никак не меняет того факта, что в Linux нет никакого способа > (я нигде не нашел и мне никто не смог подсказать) отключить > использование определённых модулей для конкретного > устройства. Только выключить их совсем и оказаться без > драйверов для устройств похожего класса. Куда конкретнее-то? Вот есть у меня вполне конкретный ведрофон: [694631.727454] cdc_acm 5-1.4:1.1: ttyACM0: USB ACM device Если я скажу # echo 5-1.4:1.1 > /sys/bus/usb/drivers/cdc_acm/unbind - ядро его отпустит и /dev/ttyACM0 пропадет (ибо я использую CONFIG_DEVTMPFS). -- Alexey V. Vissarionov gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net
next prev parent reply other threads:[~2022-12-07 15:04 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-12-05 19:02 ` [devel] way to find package, which contains specific library Andrey Savchenko 2022-12-06 9:35 ` Sergey V Turchin 2022-12-06 10:10 ` Дмитрий Терехин 2022-12-06 10:50 ` Sergey V Turchin 2022-12-06 12:36 ` [devel] можно ли запретить загружать модуль ядра для конкретного девайса Ilya Kurdyukov 2022-12-06 23:24 ` Alexey V. Vissarionov 2022-12-07 2:49 ` Ilya Kurdyukov 2022-12-07 6:24 ` Ilya Kurdyukov 2022-12-07 7:04 ` Andrey Savchenko 2022-12-07 8:49 ` Sergey Bolshakov 2022-12-07 9:07 ` Ilya Kurdyukov 2022-12-07 9:17 ` Sergey Bolshakov 2022-12-07 9:45 ` Ilya Kurdyukov 2022-12-07 9:55 ` Aleksey Novodvorsky 2022-12-07 10:30 ` Sergey Bolshakov 2022-12-07 10:35 ` Ilya Kurdyukov 2022-12-07 15:04 ` Alexey V. Vissarionov [this message] 2022-12-07 10:49 ` Anton Farygin 2022-12-06 5:48 ` [devel] way to find package, which contains specific library Anton Farygin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221207150401.GA23396@altlinux.org \ --to=gremlin@altlinux.org \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git