Skip to content

Permission denied to change max size of the device using sysfs attribute max_size #3

Description

@harishcpu

harish@harish-vm:~/ldd/custom_drivers/006_pcd_sysfs$ cd /sys/class/pcd_class/pcdev-0/
harish@harish-vm:/sys/class/pcd_class/pcdev-0$ cat serial_number
PCDEVABC111
harish@harish-vm:/sys/class/pcd_class/pcdev-0$ cat max_size
512
harish@harish-vm:/sys/class/pcd_class/pcdev-0$ echo 100 > max_size
bash: max_size: Permission denied
harish@harish-vm:/sys/class/pcd_class/pcdev-0$ sudo echo 100 > max_size
bash: max_size: Permission denied
harish@harish-vm:/sys/class/pcd_class/pcdev-0$ cat max_size
512

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions